diff --git a/rogueserver.go b/rogueserver.go index 1fba0e7..93789ae 100644 --- a/rogueserver.go +++ b/rogueserver.go @@ -35,6 +35,8 @@ func main() { proto := flag.String("proto", "tcp", "protocol for api to use (tcp, unix)") addr := flag.String("addr", "0.0.0.0:8001", "network address for api to listen on") + tlscert := flag.String("tlscert", "", "tls certificate path") + tlskey := flag.String("tlskey", "", "tls key path") dbuser := flag.String("dbuser", "pokerogue", "database username") dbpass := flag.String("dbpass", "pokerogue", "database password") @@ -42,9 +44,6 @@ func main() { dbaddr := flag.String("dbaddr", "localhost", "database address") dbname := flag.String("dbname", "pokeroguedb", "database name") - tlscert := flag.String("tlscert", "", "tls certificate path") - tlskey := flag.String("tlskey", "", "tls key path") - flag.Parse() // register gob types