about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2020-01-29 20:11:36 +0100
committerEmile <hanemile@protonmail.com>2020-01-29 20:11:36 +0100
commit6e4affd636831e6af172b765459a2ac9fd4bf5ff (patch)
tree466dd734478e29c26fd5ebcc4a708180c57cc061 /src
parenteb259fd74498d9b23f62ac1c70dbf12c2fbe037f (diff)
updated the flags used
Diffstat (limited to 'src')
-rw-r--r--src/flags.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/flags.go b/src/flags.go
index 1fd28df..df7ee52 100644
--- a/src/flags.go
+++ b/src/flags.go
@@ -5,11 +5,15 @@ import "flag"
 func parseFlags() config {
 	sshPort := flag.Int("sshPort", 2222, "the port the ssh server is listening on")
 	httpPort := flag.Int("httpPort", 8084, "the port the http server is listening on")
+	bindIP := flag.String("bind", "0.0.0.0", "the ip the servers should be listening on")
+	stateFile := flag.String("stateFile", "./statefile.txt", "the file path to store the state in")
 
 	flag.Parse()
 
 	return config{
-		sshPort:  *sshPort,
-		httpPort: *httpPort,
+		sshPort:   *sshPort,
+		httpPort:  *httpPort,
+		bindIP:    *bindIP,
+		stateFile: *stateFile,
 	}
 }