change default IP

This might otherwise cause confusion with the server.json setting, which should stay at 0.0.0.0.

127.0.0.1 might at least work with emulators running on the same PC out of the box. Whereas 0.0.0.0 should be invalid (except on some systems that map
it to localhost).
This commit is contained in:
Robin C. Ladiges 2022-07-18 03:30:14 +02:00
parent b3b49bd547
commit dd4f3202ae
No known key found for this signature in database
GPG Key ID: B494D3DF92661B99
2 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ void saveWriteHook(al::ByamlWriter* saveByml) {
if (serverIP) {
saveByml->addString("ServerIP", serverIP);
} else {
saveByml->addString("ServerIP", "0.0.0.0");
saveByml->addString("ServerIP", "127.0.0.1");
}
if (serverPort) {
@ -168,4 +168,4 @@ bool borderPullBackHook(WorldEndBorderKeeper* thisPtr) {
}
return isFirstStep;
}
}

View File

@ -230,7 +230,7 @@ bool Client::startConnection() {
if (mServerIP.isEmpty() || isOverride) {
mKeyboard->setHeaderText(u"Save File does not contain an IP!");
mKeyboard->setSubText(u"Please set a Server IP Below.");
mServerIP = "0.0.0.0";
mServerIP = "127.0.0.1";
Client::openKeyboardIP();
isNeedSave = true;
}