From 649717bf2218ba255848a65563fede8797494d06 Mon Sep 17 00:00:00 2001 From: DamianX Date: Wed, 27 Apr 2022 21:33:10 +0200 Subject: [PATCH] Fixed autoadmin when launching the game through dreamseeker (#17684) --- code/modules/client/client_procs.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/client/client_procs.dm b/code/modules/client/client_procs.dm index 3dec3096c21..2b9aeda497f 100644 --- a/code/modules/client/client_procs.dm +++ b/code/modules/client/client_procs.dm @@ -396,8 +396,8 @@ /client/proc/is_connecting_from_localhost() - var/localhost_addresses = list("127.0.0.1", "::1") // Adresses - if(!isnull(address) && (address in localhost_addresses)) + var/static/list/localhost_addresses = list("127.0.0.1", "::1") + if((!address && !world.port) || (address in localhost_addresses)) return TRUE return FALSE