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 432c910 commit c974521Copy full SHA for c974521
trunk/clsScriptSupportClass.cls
@@ -1623,10 +1623,14 @@ Public Function GetCurrentUsername()
1623
End Function
1624
1625
'// GETCURRENTSERVERIP
1626
-'// Returns the IP of the server the bot is currently connected to.
+'// Returns the IP of the server the bot is currently connected to, bypassing proxies.
1627
Public Function GetCurrentServerIP()
1628
If modGlobals.g_Online Then
1629
- GetCurrentServerIP = frmChat.sckBNet.RemoteHostIP
+ If ProxyConnInfo(stBNCS).IsUsingProxy Then
1630
+ GetCurrentServerIP = ProxyConnInfo(stBNCS).RemoteHostIP
1631
+ Else
1632
+ GetCurrentServerIP = frmChat.sckBNet.RemoteHostIP
1633
+ End If
1634
Else
1635
GetCurrentServerIP = vbNullString
1636
End If
0 commit comments