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
+10-2Lines changed: 10 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,9 @@ type Config struct {
35
35
SettingsFilestring`json:"settings_file"`
36
36
LogFilestring`json:"log_file"`
37
37
ConfFilestring
38
+
glibcCustomstring
39
+
glibcLocationstring
40
+
glibcLibLocstring
38
41
}
39
42
40
43
var (
@@ -73,9 +76,14 @@ func parseFlags() {
73
76
factorioConfigFile:=flag.String("config", "config/config.ini", "Specify location of Factorio config.ini file")
74
77
factorioMaxUpload:=flag.Int64("max-upload", 1024*1024*20, "Maximum filesize for uploaded files (default 20MB).")
75
78
factorioBinary:=flag.String("bin", "bin/x64/factorio", "Location of Factorio Server binary file")
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")
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)")
81
+
glibcLibLoc:=flag.String("glibc-lib-loc", "/opt/glibc-2.18/lib", "Location of glibc lib folder (ex. /opt/glibc-2.18/lib)")
76
82
77
83
flag.Parse()
78
-
84
+
config.glibcCustom=*glibcCustom
85
+
config.glibcLocation=*glibcLocation
86
+
config.glibcLibLoc=*glibcLibLoc
79
87
config.ConfFile=*confFile
80
88
config.FactorioDir=*factorioDir
81
89
config.ServerIP=*serverIP
@@ -123,7 +131,7 @@ func main() {
123
131
124
132
// Initialize HTTP router
125
133
router:=NewRouter()
126
-
127
134
log.Printf("Starting server on: %s:%s", config.ServerIP, config.ServerPort)
0 commit comments