tarina

git clone https://git.tarina.org/tarina
Log | Files | Refs | README | LICENSE

commit 10f4edb98f7132d399f9ad1047f191c36a4cc632
parent 1c2af215c5ccee1ae7b3a95a93b1a1a00a19a859
Author: rob <rob@tarina.org>
Date:   Sun, 17 Sep 2023 20:59:42 +0100

network change

Diffstat:
Mtarina.py | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tarina.py b/tarina.py @@ -234,10 +234,11 @@ def main(): for ip in adapter.ips: if '::' not in ip.ip[0] and '127.0.0.1' != ip.ip: print(ip.ip) - networks.append(ip.ip) + networks=[ip.ip] if networks != []: network=networks[0] if network not in cameras: + cameras=[] cameras.append(network) port = 55555 @@ -1644,10 +1645,11 @@ def main(): for ip in adapter.ips: if '::' not in ip.ip[0] and '127.0.0.1' != ip.ip: print(ip.ip) - networks.append(ip.ip) + networks=[ip.ip] if networks != []: network=networks[0] if network not in cameras: + cameras=[] cameras.append(network) else: network='not connected'