Interface outbound option enabled by default

This commit is contained in:
Mark Qvist 2022-02-25 13:31:52 +01:00
parent 49d7808835
commit 8ec356a28e

View File

@ -302,10 +302,10 @@ class Reticulum:
ignored_interfaces ignored_interfaces
) )
if "outgoing" in c and c.as_bool("outgoing") == True: if "outgoing" in c and c.as_bool("outgoing") == False:
interface.OUT = True
else:
interface.OUT = False interface.OUT = False
else:
interface.OUT = True
RNS.Transport.interfaces.append(interface) RNS.Transport.interfaces.append(interface)
else: else:
@ -338,10 +338,10 @@ class Reticulum:
forward_port forward_port
) )
if "outgoing" in c and c.as_bool("outgoing") == True: if "outgoing" in c and c.as_bool("outgoing") == False:
interface.OUT = True
else:
interface.OUT = False interface.OUT = False
else:
interface.OUT = True
RNS.Transport.interfaces.append(interface) RNS.Transport.interfaces.append(interface)
@ -365,10 +365,10 @@ class Reticulum:
i2p_tunneled i2p_tunneled
) )
if "outgoing" in c and c.as_bool("outgoing") == True: if "outgoing" in c and c.as_bool("outgoing") == False:
interface.OUT = True
else:
interface.OUT = False interface.OUT = False
else:
interface.OUT = True
RNS.Transport.interfaces.append(interface) RNS.Transport.interfaces.append(interface)
@ -389,10 +389,10 @@ class Reticulum:
i2p_tunneled = i2p_tunneled i2p_tunneled = i2p_tunneled
) )
if "outgoing" in c and c.as_bool("outgoing") == True: if "outgoing" in c and c.as_bool("outgoing") == False:
interface.OUT = True
else:
interface.OUT = False interface.OUT = False
else:
interface.OUT = True
RNS.Transport.interfaces.append(interface) RNS.Transport.interfaces.append(interface)
@ -409,10 +409,10 @@ class Reticulum:
connectable = connectable, connectable = connectable,
) )
if "outgoing" in c and c.as_bool("outgoing") == True: if "outgoing" in c and c.as_bool("outgoing") == False:
interface.OUT = True
else:
interface.OUT = False interface.OUT = False
else:
interface.OUT = True
RNS.Transport.interfaces.append(interface) RNS.Transport.interfaces.append(interface)
@ -437,10 +437,10 @@ class Reticulum:
stopbits stopbits
) )
if "outgoing" in c and c.as_bool("outgoing") == True: if "outgoing" in c and c.as_bool("outgoing") == False:
interface.OUT = True
else:
interface.OUT = False interface.OUT = False
else:
interface.OUT = True
RNS.Transport.interfaces.append(interface) RNS.Transport.interfaces.append(interface)
@ -478,10 +478,10 @@ class Reticulum:
beacon_data beacon_data
) )
if "outgoing" in c and c.as_bool("outgoing") == True: if "outgoing" in c and c.as_bool("outgoing") == False:
interface.OUT = True
else:
interface.OUT = False interface.OUT = False
else:
interface.OUT = True
RNS.Transport.interfaces.append(interface) RNS.Transport.interfaces.append(interface)
@ -520,10 +520,10 @@ class Reticulum:
flow_control flow_control
) )
if "outgoing" in c and c.as_bool("outgoing") == True: if "outgoing" in c and c.as_bool("outgoing") == False:
interface.OUT = True
else:
interface.OUT = False interface.OUT = False
else:
interface.OUT = True
RNS.Transport.interfaces.append(interface) RNS.Transport.interfaces.append(interface)
@ -556,10 +556,10 @@ class Reticulum:
id_callsign = id_callsign id_callsign = id_callsign
) )
if "outgoing" in c and c.as_bool("outgoing") == True: if "outgoing" in c and c.as_bool("outgoing") == False:
interface.OUT = True
else:
interface.OUT = False interface.OUT = False
else:
interface.OUT = True
RNS.Transport.interfaces.append(interface) RNS.Transport.interfaces.append(interface)
else: else:
@ -789,7 +789,6 @@ loglevel = 4
[[Default Interface]] [[Default Interface]]
type = AutoInterface type = AutoInterface
interface_enabled = True interface_enabled = True
outgoing = True
# The following example enables communication with other # The following example enables communication with other
@ -798,7 +797,6 @@ loglevel = 4
[[UDP Interface]] [[UDP Interface]]
type = UDPInterface type = UDPInterface
interface_enabled = False interface_enabled = False
outgoing = True
listen_ip = 0.0.0.0 listen_ip = 0.0.0.0
listen_port = 4242 listen_port = 4242
forward_ip = 255.255.255.255 forward_ip = 255.255.255.255
@ -842,7 +840,6 @@ loglevel = 4
[[TCP Server Interface]] [[TCP Server Interface]]
type = TCPServerInterface type = TCPServerInterface
interface_enabled = False interface_enabled = False
outgoing = True
# This configuration will listen on all IP # This configuration will listen on all IP
# interfaces on port 4242 # interfaces on port 4242
@ -869,7 +866,6 @@ loglevel = 4
[[TCP Client Interface]] [[TCP Client Interface]]
type = TCPClientInterface type = TCPClientInterface
interface_enabled = False interface_enabled = False
outgoing = True
target_host = 127.0.0.1 target_host = 127.0.0.1
target_port = 4242 target_port = 4242
@ -883,11 +879,6 @@ loglevel = 4
# Enable interface if you want use it! # Enable interface if you want use it!
interface_enabled = False interface_enabled = False
# Allow transmit on interface. Setting
# this to false will create a listen-
# only interface.
outgoing = true
# Serial port for the device # Serial port for the device
port = /dev/ttyUSB0 port = /dev/ttyUSB0
@ -940,9 +931,6 @@ loglevel = 4
# Enable interface if you want use it! # Enable interface if you want use it!
interface_enabled = False interface_enabled = False
# Allow transmit on interface.
outgoing = true
# Serial port for the device # Serial port for the device
port = /dev/ttyUSB1 port = /dev/ttyUSB1
@ -1014,9 +1002,6 @@ loglevel = 4
# Enable interface if you want use it! # Enable interface if you want use it!
interface_enabled = False interface_enabled = False
# Allow transmit on interface.
outgoing = true
# Serial port for the device # Serial port for the device
port = /dev/ttyUSB2 port = /dev/ttyUSB2