GIT
/
REPO
/
FRED-BOY
Projects
/
d2df-sdl.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb11816
)
Netmaster: Additional check for server name in ping response
author
Stas'M <x86corez@gmail.com>
Sat, 14 Mar 2020 20:40:40 +0000
(23:40 +0300)
committer
Stas'M <x86corez@gmail.com>
Sat, 14 Mar 2020 20:40:40 +0000
(23:40 +0300)
src/game/g_netmaster.pas
patch
|
blob
|
history
diff --git
a/src/game/g_netmaster.pas
b/src/game/g_netmaster.pas
index 391d7729cf405f7e38ba25324f95318487e76af2..8827515a57df2511acd331f678278cac7fe96e6b 100644
(file)
--- a/
src/game/g_netmaster.pas
+++ b/
src/game/g_netmaster.pas
@@
-1574,7
+1574,8
@@
begin
for I := Low(SL) to High(SL) do
if (SL[I].PingAddr.host = SvAddr.host) and
(SL[I].PingAddr.port = SvAddr.port) and
- (SL[I].Port = tmpsv.Port) then
+ (SL[I].Port = tmpsv.Port) and
+ (SL[I].Name = tmpsv.Name) then
begin
tmpsv.IP := SL[I].IP;
SL[I] := tmpsv;
DEADSOFTWARE 2012-2025