diff --git a/Gophermap b/Gophermap index 9dd179d..3994088 100644 --- a/Gophermap +++ b/Gophermap @@ -1,6 +1,7 @@ - ________ ______ - /_ __/ /_ ____ ____ ___ ____ ____ ___ __ _______ / ____/ - / / / __ \/ __ \/ __ `__ \/ __ \/ __ `__ \/ / / / ___/_____/ /_ - / / / / / / /_/ / / / / / / /_/ / / / / / / /_/ (__ )_____/ __/ -/_/ /_/ /_/\____/_/ /_/ /_/\____/_/ /_/ /_/\__, /____/ /_/ - /____/ + ______ _ _ +(_) | | | o | | + | __ | | | | __ + _ |/ \_|/_) | |/_) / \_ + (_/ \__/ | \_/|_/| \_/\__/ + +If you can see this page, your Tokiko server is working as hard as it can! diff --git a/README b/README index 3c530de..612dc5f 100644 --- a/README +++ b/README @@ -1,12 +1,12 @@ -Thomomys-F -========== +Tokiko +====== A simple gopher daemon written in Golang. Forked from shokara/thomomys Flags ----- --i = IP address for Thomomys to listen on (Default: 0.0.0.0) --p = Port for Thomomys to listen on (Default: 70) +-i = IP address for Tokiko to listen on (Default: 0.0.0.0) +-p = Port for Tokiko to listen on (Default: 70) -h = Default hostname that gets printed for links (Default: localhost) -d = Root directory that gets served (Default: current directory) @@ -14,4 +14,4 @@ Flags Why? ---- Anything can and will happen. Simple as that. -And while environment variables are okay, they are rather messy to deal with, in my opinion, but that's just me I guess. \ No newline at end of file +And while environment variables are okay, they are rather messy to deal with, in my opinion, but that's just me I guess. diff --git a/main.go b/main.go index 3de71e1..57ae1a6 100644 --- a/main.go +++ b/main.go @@ -2,7 +2,7 @@ // This fork in particular uses flags instead of environment variables. // Copyright: // (C) 2021 Shokara Kou -// (C) 2022 Aoi Koizumi +// (C) 2023 Izuru Yakumo package main @@ -126,8 +126,8 @@ func connHandle(c net.Conn) { } func init() { - flag.StringVar(&ADDR_IP, "i", "0.0.0.0", "IP address for Thomomys to listen on .Default is 0.0.0.0") - flag.StringVar(&ADDR_PORT, "p", "70", "Port for Thomomys to listen on. Default is 70") + flag.StringVar(&ADDR_IP, "i", "0.0.0.0", "IP address for Tokiko to listen on .Default is 0.0.0.0") + flag.StringVar(&ADDR_PORT, "p", "70", "Port for Tokiko to listen on. Default is 70") flag.StringVar(&HOSTNAME, "h", "localhost", "Hostname that gets printed for links. Default is localhost") flag.StringVar(&SRVDIR, "s", ".", "Root directory that gets served. Default is current directory") }