added network id

pull/3/head
Tom Early 2 years ago
parent 4d6928c647
commit 94f4689ee1

@ -43,6 +43,10 @@ class xReflector {
fclose($handle); fclose($handle);
$this->ServiceName = substr($this->XMLContent, strpos($this->XMLContent, "<XLX")+4, 3); $this->ServiceName = substr($this->XMLContent, strpos($this->XMLContent, "<XLX")+4, 3);
if (preg_match('/[^a-zA-Z0-9]/', $this->ServiceName) == 1) {
$this->ServiceName = null;
return false;
}
$this->ReflectorName = "XLX".$this->ServiceName; $this->ReflectorName = "XLX".$this->ServiceName;

@ -60,7 +60,7 @@ bool CReflector::Start(void)
#ifndef NO_DHT #ifndef NO_DHT
// start the dht instance // start the dht instance
refhash = dht::InfoHash::get(cs); refhash = dht::InfoHash::get(cs);
node.run(17171, dht::crypto::generateIdentity(cs), true); node.run(17171, dht::crypto::generateIdentity(cs), true, 59973);
node.bootstrap(g_Configure.GetString(g_Keys.names.bootstrap), "17171"); node.bootstrap(g_Configure.GetString(g_Keys.names.bootstrap), "17171");
#endif #endif

Loading…
Cancel
Save

Powered by TurnKey Linux.