• R/O
  • SSH

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

This is a fork of Zandronum used on servers hosted by The Sentinels Playground (TSPG).


Commit MetaInfo

Revision87a098891caff97a8c8b6c250391ea2ceb50b17d (tree)
Zeit2022-06-22 09:08:32
AutorAdam Kaminski <kaminskiadam9@gmai...>
CommiterAdam Kaminski

Log Message

Reworded the reason message for when a client is kicked for using a VPN.

Ändern Zusammenfassung

Diff

diff -r e3f901eb92cc -r 87a098891caf src/tspg_dnsbl.cpp
--- a/src/tspg_dnsbl.cpp Tue Jun 21 19:53:32 2022 -0400
+++ b/src/tspg_dnsbl.cpp Tue Jun 21 20:08:32 2022 -0400
@@ -230,17 +230,17 @@
230230 std::string reason = res["reason"];
231231 time_t tExpiration = SERVERBAN_ParseBanLength("perm");
232232
233- char buf[64];
234- snprintf(buf, sizeof(buf), "This host has been automatically detected as a proxy (%s)", reason.c_str());
233+ FString comment;
234+ comment.Format("An IP masking service (VPN) has been detected. Please disable it before connecting (%s).", reason.c_str());
235235
236236 std::string unused;
237- SERVERBAN_GetBanList()->addEntry(address.c_str(), nullptr, buf, unused, tExpiration);
237+ SERVERBAN_GetBanList()->addEntry(address.c_str(), nullptr, comment, unused, tExpiration);
238238
239239 NETADDRESS_s netaddr;
240240 netaddr.LoadFromString(address.c_str());
241241 kickIp(netaddr);
242242
243- Printf("[TSPG] %s has been detected as a proxy and has been automatically banned (%s)\n", address.c_str(), reason.c_str());
243+ Printf("[TSPG] %s has been detected as an IP masking service (VPN) and has been automatically banned (%s).\n", address.c_str(), reason.c_str());
244244 }
245245 }
246246
@@ -253,10 +253,10 @@
253253
254254 if (SERVER_GetClient(ulIdx)->Address.CompareNoPort(addr))
255255 {
256- char buf[512];
257- snprintf(buf, sizeof(buf), "This host has been automatically detected as a proxy.");
256+ FString reason;
257+ reason.Format("An IP masking service (VPN) has been detected. Please disable it before connecting.");
258258
259- SERVER_KickPlayer(ulIdx, buf);
259+ SERVER_KickPlayer(ulIdx, reason);
260260 }
261261 }
262262 }