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!
|
||||
|
10
README
10
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.
|
||||
And while environment variables are okay, they are rather messy to deal with, in my opinion, but that's just me I guess.
|
||||
|
6
main.go
6
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")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user