diff-golf :)

Signed-off-by: ed <s@ocv.me>
This commit is contained in:
ed 2026-04-10 19:59:50 +00:00 committed by GitHub
parent 84b05940cf
commit 3f4dabe45c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -516,7 +516,7 @@ class TcpSrv(object):
if not ln.startswith("default"): if not ln.startswith("default"):
continue continue
yield ln.split()[7] if OPENBSD else ln.split()[3] yield ln.split()[7] if OPENBSD else ln.split()[3]
else: return
with open("/proc/net/route", "rb") as f: with open("/proc/net/route", "rb") as f:
next(f) next(f)
for ln in f: for ln in f: