diff --git a/RNS/Interfaces/AutoInterface.py b/RNS/Interfaces/AutoInterface.py index 57634851..c136efdf 100644 --- a/RNS/Interfaces/AutoInterface.py +++ b/RNS/Interfaces/AutoInterface.py @@ -580,6 +580,7 @@ class AutoInterface(Interface): spawned_interface.announce_rate_grace = self.announce_rate_grace spawned_interface.announce_rate_penalty = self.announce_rate_penalty spawned_interface.mode = self.mode + spawned_interface.gravity = self.gravity spawned_interface.HW_MTU = self.HW_MTU spawned_interface.online = True RNS.Transport.add_interface(spawned_interface) diff --git a/RNS/Interfaces/BackboneInterface.py b/RNS/Interfaces/BackboneInterface.py index 89e2208d..048904f3 100644 --- a/RNS/Interfaces/BackboneInterface.py +++ b/RNS/Interfaces/BackboneInterface.py @@ -482,6 +482,7 @@ class BackboneInterface(Interface): spawned_interface.announce_rate_grace = self.announce_rate_grace spawned_interface.announce_rate_penalty = self.announce_rate_penalty spawned_interface.mode = self.mode + spawned_interface.gravity = self.gravity spawned_interface.HW_MTU = self.HW_MTU RNS.log("Spawned new BackboneClient Interface: "+str(spawned_interface), RNS.LOG_PATHING) if RNS.sl(RNS.LOG_PATHING) else None RNS.Transport.add_interface(spawned_interface) diff --git a/RNS/Interfaces/I2PInterface.py b/RNS/Interfaces/I2PInterface.py index 532fafcb..18a5bf2d 100644 --- a/RNS/Interfaces/I2PInterface.py +++ b/RNS/Interfaces/I2PInterface.py @@ -990,6 +990,7 @@ class I2PInterface(Interface): spawned_interface.announce_rate_grace = self.announce_rate_grace spawned_interface.announce_rate_penalty = self.announce_rate_penalty spawned_interface.mode = self.mode + spawned_interface.gravity = self.gravity spawned_interface.HW_MTU = self.HW_MTU RNS.log("Spawned new I2PInterface Peer: "+str(spawned_interface), RNS.LOG_VERBOSE) RNS.Transport.add_interface(spawned_interface) diff --git a/RNS/Interfaces/Interface.py b/RNS/Interfaces/Interface.py index e0f84937..996ed8bc 100755 --- a/RNS/Interfaces/Interface.py +++ b/RNS/Interfaces/Interface.py @@ -71,9 +71,8 @@ class Interface: # to hold at any given time. MAX_HELD_ANNOUNCES = 256 - # How long a spawned interface will be - # considered to be newly created. Two - # hours by default. + # Control parameters + DEFAULT_GRAVITY = 0 IC_NEW_TIME = 2*60*60 IC_BURST_FREQ_NEW = 3 IC_BURST_FREQ = 10 diff --git a/RNS/Interfaces/TCPInterface.py b/RNS/Interfaces/TCPInterface.py index 5559732f..90c9ea3b 100644 --- a/RNS/Interfaces/TCPInterface.py +++ b/RNS/Interfaces/TCPInterface.py @@ -636,6 +636,7 @@ class TCPServerInterface(Interface): spawned_interface.announce_rate_grace = self.announce_rate_grace spawned_interface.announce_rate_penalty = self.announce_rate_penalty spawned_interface.mode = self.mode + spawned_interface.gravity = self.gravity spawned_interface.HW_MTU = self.HW_MTU spawned_interface.online = True RNS.log("Spawned new TCPClient Interface: "+str(spawned_interface), RNS.LOG_VERBOSE) diff --git a/RNS/Interfaces/WeaveInterface.py b/RNS/Interfaces/WeaveInterface.py index 7f96fb45..33d00afb 100644 --- a/RNS/Interfaces/WeaveInterface.py +++ b/RNS/Interfaces/WeaveInterface.py @@ -961,6 +961,7 @@ class WeaveInterface(Interface): spawned_interface.announce_rate_grace = self.announce_rate_grace spawned_interface.announce_rate_penalty = self.announce_rate_penalty spawned_interface.mode = self.mode + spawned_interface.gravity = self.gravity spawned_interface.HW_MTU = self.HW_MTU spawned_interface._online = True RNS.Transport.add_interface(spawned_interface)