This commit is contained in:
Tanguy 2023-02-15 17:17:29 +01:00
parent 038f5e1b7a
commit d3ae1a258d
No known key found for this signature in database
GPG Key ID: 7DD8EC6B6CE6C45E

View File

@ -14,7 +14,7 @@ let
except CatchableError: 3.minutes except CatchableError: 3.minutes
proc main {.async.} = proc main {.async.} =
let addresses = getInterfaces().filterIt(it.name == "eth1").mapIt(it.addresses) let addresses = getInterfaces().filterIt(it.name == "eth0").mapIt(it.addresses)
if addresses.len < 1 or addresses[0].len < 1: if addresses.len < 1 or addresses[0].len < 1:
quit "Can't find local ip!" quit "Can't find local ip!"