From d4a906a0f144bb041ed095f54fe4a3c7b61b541a Mon Sep 17 00:00:00 2001 From: maru Date: Fri, 10 May 2024 15:50:19 -0400 Subject: [PATCH] Move HTTPS-related flags in rogueserver.go --- rogueserver.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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