Skip to content

Commit 12cae95

Browse files
committed
Update APEntryState.hx
1 parent ca7d0e7 commit 12cae95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/archipelago/APEntryState.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ class APEntryState extends MusicBeatState
654654
{
655655
FlxG.autoPause = false;
656656
var connectSubState = new APConnectingSubState();
657-
var uri = '${_hostInput.text}:${_portInput.text}';
657+
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}';
658658
if (!wsCheck.match(uri))
659659
uri = 'ws://$uri';
660660

0 commit comments

Comments
 (0)