added DNS-based bootstrap method
This commit is contained in:
parent
f18eb5c91b
commit
16d851410b
|
@ -3641,6 +3641,19 @@ if __name__ == "__main__":
|
|||
print 'Bitmessage cannot read future versions of the keys file (keys.dat). Run the newer version of Bitmessage.'
|
||||
raise SystemExit
|
||||
|
||||
#DNS bootstrap method. Note that this lookup doesn't use the proxy server if configured; adding that feature will require more careful testing to verify that it is working.
|
||||
try:
|
||||
for item in socket.getaddrinfo('bootstrap8080.bitmessage.org',80):
|
||||
print 'Adding', item[4][0],'to knownNodes based on DNS boostrap method'
|
||||
knownNodes[1][item[4][0]] = (8080,int(time.time()))
|
||||
except:
|
||||
print 'bootstrap8080.bitmessage.org DNS bootstraping failed.'
|
||||
try:
|
||||
for item in socket.getaddrinfo('bootstrap8444.bitmessage.org',80):
|
||||
print 'Adding', item[4][0],'to knownNodes based on DNS boostrap method'
|
||||
knownNodes[1][item[4][0]] = (8444,int(time.time()))
|
||||
except:
|
||||
print 'bootstrap8444.bitmessage.org DNS bootstrapping failed.'
|
||||
|
||||
app = QtGui.QApplication(sys.argv)
|
||||
app.setStyleSheet("QStatusBar::item { border: 0px solid black }")
|
||||
|
|
|
@ -10,10 +10,10 @@ def createDefaultKnownNodes(appdata):
|
|||
############## Stream 1 ################
|
||||
stream1 = {}
|
||||
|
||||
stream1['75.186.58.44'] = (8080,int(time.time()))
|
||||
stream1['74.66.249.244'] = (8080,int(time.time()))
|
||||
stream1['76.113.50.103'] = (8444,int(time.time()))
|
||||
stream1['188.122.235.58'] = (8444,int(time.time()))
|
||||
#stream1['75.186.58.44'] = (8080,int(time.time()))
|
||||
#stream1['74.66.249.244'] = (8080,int(time.time()))
|
||||
#stream1['76.113.50.103'] = (8444,int(time.time()))
|
||||
#stream1['188.122.235.58'] = (8444,int(time.time()))
|
||||
|
||||
############# Stream 2 #################
|
||||
stream2 = {}
|
||||
|
|
Loading…
Reference in New Issue
Block a user