Rename to avoid confusion

Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>

git-svn-id: file:///srv/svn/repo/tokiko/trunk@14 8f5ca974-a7f8-e144-9f80-d41d5039c194
This commit is contained in:
yakumo.izuru 2023-04-08 00:42:17 +00:00
parent a0ab2a93bd
commit 0eab3816aa
3 changed files with 15 additions and 14 deletions

View File

@ -1,6 +1,7 @@
________ ______ ______ _ _
/_ __/ /_ ____ ____ ___ ____ ____ ___ __ _______ / ____/ (_) | | | o | |
/ / / __ \/ __ \/ __ `__ \/ __ \/ __ `__ \/ / / / ___/_____/ /_ | __ | | | | __
/ / / / / / /_/ / / / / / / /_/ / / / / / / /_/ (__ )_____/ __/ _ |/ \_|/_) | |/_) / \_
/_/ /_/ /_/\____/_/ /_/ /_/\____/_/ /_/ /_/\__, /____/ /_/ (_/ \__/ | \_/|_/| \_/\__/
/____/
If you can see this page, your Tokiko server is working as hard as it can!

10
README
View File

@ -1,12 +1,12 @@
Thomomys-F Tokiko
========== ======
A simple gopher daemon written in Golang. A simple gopher daemon written in Golang.
Forked from shokara/thomomys Forked from shokara/thomomys
Flags Flags
----- -----
-i = IP address for Thomomys to listen on (Default: 0.0.0.0) -i = IP address for Tokiko to listen on (Default: 0.0.0.0)
-p = Port for Thomomys to listen on (Default: 70) -p = Port for Tokiko to listen on (Default: 70)
-h = Default hostname that gets printed for links (Default: localhost) -h = Default hostname that gets printed for links (Default: localhost)
-d = Root directory that gets served (Default: current directory) -d = Root directory that gets served (Default: current directory)
@ -14,4 +14,4 @@ Flags
Why? Why?
---- ----
Anything can and will happen. Simple as that. 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. And while environment variables are okay, they are rather messy to deal with, in my opinion, but that's just me I guess.

View File

@ -2,7 +2,7 @@
// This fork in particular uses flags instead of environment variables. // This fork in particular uses flags instead of environment variables.
// Copyright: // Copyright:
// (C) 2021 Shokara Kou // (C) 2021 Shokara Kou
// (C) 2022 Aoi Koizumi // (C) 2023 Izuru Yakumo
package main package main
@ -126,8 +126,8 @@ func connHandle(c net.Conn) {
} }
func init() { 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_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 Thomomys to listen on. Default is 70") 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(&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") flag.StringVar(&SRVDIR, "s", ".", "Root directory that gets served. Default is current directory")
} }