We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca7d0e7 commit 12cae95Copy full SHA for 12cae95
source/archipelago/APEntryState.hx
@@ -654,7 +654,7 @@ class APEntryState extends MusicBeatState
654
{
655
FlxG.autoPause = false;
656
var connectSubState = new APConnectingSubState();
657
- var uri = '${_hostInput.text}:${_portInput.text}';
+var uri = '${#if sys (_hostInput.text == "localhost" || _hostInput.text == "127.0.0.1") ? sys.net.Host.localhost() : _hostInput.text #else _hostInput.text #end}:${_portInput.text}';
658
if (!wsCheck.match(uri))
659
uri = 'ws://$uri';
660
0 commit comments