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:
parent
a0ab2a93bd
commit
0eab3816aa
13
Gophermap
13
Gophermap
@ -1,6 +1,7 @@
|
|||||||
________ ______
|
______ _ _
|
||||||
/_ __/ /_ ____ ____ ___ ____ ____ ___ __ _______ / ____/
|
(_) | | | o | |
|
||||||
/ / / __ \/ __ \/ __ `__ \/ __ \/ __ `__ \/ / / / ___/_____/ /_
|
| __ | | | | __
|
||||||
/ / / / / / /_/ / / / / / / /_/ / / / / / / /_/ (__ )_____/ __/
|
_ |/ \_|/_) | |/_) / \_
|
||||||
/_/ /_/ /_/\____/_/ /_/ /_/\____/_/ /_/ /_/\__, /____/ /_/
|
(_/ \__/ | \_/|_/| \_/\__/
|
||||||
/____/
|
|
||||||
|
If you can see this page, your Tokiko server is working as hard as it can!
|
||||||
|
8
README
8
README
@ -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)
|
||||||
|
|
||||||
|
6
main.go
6
main.go
@ -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")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user