You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main.go
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,7 @@ type Config struct {
37
37
glibcCustomstring
38
38
glibcLocationstring
39
39
glibcLibLocstring
40
+
autostartstring
40
41
}
41
42
42
43
var (
@@ -78,8 +79,10 @@ func parseFlags() {
78
79
glibcCustom:=flag.String("glibc-custom", "false", "By default false, if custom glibc is required set this to true and add glibc-loc and glibc-lib-loc parameters")
79
80
glibcLocation:=flag.String("glibc-loc", "/opt/glibc-2.18/lib/ld-2.18.so", "Location glibc ld.so file if needed (ex. /opt/glibc-2.18/lib/ld-2.18.so)")
80
81
glibcLibLoc:=flag.String("glibc-lib-loc", "/opt/glibc-2.18/lib", "Location of glibc lib folder (ex. /opt/glibc-2.18/lib)")
82
+
autostart:=flag.String("autostart", "false", "Autostart factorio server on bootup of FSM, default false [true/false]")
81
83
82
84
flag.Parse()
85
+
config.autostart=*autostart
83
86
config.glibcCustom=*glibcCustom
84
87
config.glibcLocation=*glibcLocation
85
88
config.glibcLibLoc=*glibcLibLoc
@@ -129,7 +132,7 @@ func main() {
129
132
130
133
// Initialize HTTP router
131
134
router:=NewRouter()
132
-
133
135
log.Printf("Starting server on: %s:%s", config.ServerIP, config.ServerPort)
0 commit comments