Upload batty's change to hide the gameserver IP, update astron.

This commit is contained in:
Alexander 2015-08-29 22:38:10 -04:00
parent e157c01f30
commit 21b5edae04
7 changed files with 20 additions and 3 deletions

Binary file not shown.

BIN
dependencies/astron/mongoclient.dll vendored Normal file

Binary file not shown.

View file

@ -25,6 +25,8 @@ accountdb-type developer
shard-low-pop 50 shard-low-pop 50
shard-mid-pop 100 shard-mid-pop 100
game-type developer
# RPC: # RPC:
want-rpc-server #f want-rpc-server #f
rpc-server-endpoint http://localhost:8080/ rpc-server-endpoint http://localhost:8080/

View file

@ -9,6 +9,8 @@ video-library-name p3ffmpeg
want-dev #f want-dev #f
preload-avatars #t preload-avatars #t
game-type remote
# Graphics: # Graphics:
aux-display pandagl aux-display pandagl
aux-display pandadx9 aux-display pandadx9

View file

@ -469,7 +469,7 @@ class OTPClientRepository(ClientRepositoryBase):
self.handler = self.handleMessageType self.handler = self.handleMessageType
messenger.send('connectionIssue') messenger.send('connectionIssue')
url = self.serverList[0] url = self.serverList[0]
self.notify.warning('Failed to connect to %s (%s %s). Notifying user.' % (url.cStr(), statusCode, statusString)) self.notify.warning('Failed to connect to %s (%s %s). Notifying user.' % (config.GetString('TTS_GAMESERVER'), statusCode, statusString))
dialogClass = OTPGlobals.getGlobalDialogClass() dialogClass = OTPGlobals.getGlobalDialogClass()
self.failedToConnectBox = dialogClass(message=OTPLocalizer.CRNoConnectTryAgain % (url.getServer(), url.getPort()), doneEvent='failedToConnectAck', text_wordwrap=18, style=OTPDialog.TwoChoice) self.failedToConnectBox = dialogClass(message=OTPLocalizer.CRNoConnectTryAgain % (url.getServer(), url.getPort()), doneEvent='failedToConnectAck', text_wordwrap=18, style=OTPDialog.TwoChoice)
self.failedToConnectBox.show() self.failedToConnectBox.show()

@ -1 +1 @@
Subproject commit 4e2986832f047ae4e8f6256d187a6d111a526f5d Subproject commit af09e769b860512c03de6fff4a585e96d674e89b

View file

@ -46,7 +46,20 @@ class TTSLauncher:
return self.getValue('TTS_PLAYCOOKIE') return self.getValue('TTS_PLAYCOOKIE')
def getGameServer(self): def getGameServer(self):
if config.GetString('game-type', 'developer') != 'remote':
return self.getValue('TTS_GAMESERVER') return self.getValue('TTS_GAMESERVER')
return self.getServer(self.getValue('TTS_GAMESERVER'))
def getServer(self, gameserver):
import DNS
DNS.DiscoverNameServers()
srv_req = DNS.Request(qtype = 'srv')
srv_result = srv_req.req('_toontown._tcp.'+ gameserver)
for result in srv_result.answers:
if result['typename'] == 'SRV':
data = result['data']
return data[3] + ":" + str(data[2])
def getValue(self, key, default = None): def getValue(self, key, default = None):
return os.environ.get(key, default) return os.environ.get(key, default)