Added internet check and warning when offline
This commit is contained in:
@@ -8,6 +8,9 @@ import (
|
||||
)
|
||||
|
||||
func startStopServer(cmd string, con UsrConfig) {
|
||||
if hasInternet() != true {
|
||||
fmt.Printf("WARNING!\n\tNot connected to internet, LAN access only\n")
|
||||
}
|
||||
switch cmd {
|
||||
case "start":
|
||||
x := fmt.Sprintf("%s --port %d --server-settings %s --start-server %s", con.Server.ServExec, con.Server.ServPort, con.Server.ServCfg, con.Server.WorldFile)
|
||||
|
||||
Reference in New Issue
Block a user