Listen on second port and redirect to main

This commit is contained in:
Bel LaPointe
2020-02-14 14:57:26 -07:00
parent c4c37068f3
commit 61811e8e61
4 changed files with 47 additions and 10 deletions

View File

@@ -40,6 +40,11 @@ func GetPort() string {
return ":" + fmt.Sprint(port)
}
func GetAltPort() string {
port := conf.Get("ap").GetInt()
return ":" + fmt.Sprint(port)
}
func GetRate() (int, int) {
rate := conf.Get("r").GetInt()
burst := conf.Get("b").GetInt()