diff --git a/webif/lib/system.class b/webif/lib/system.class index ac538f5..4a82058 100644 --- a/webif/lib/system.class +++ b/webif/lib/system.class @@ -30,7 +30,7 @@ proc {system hostname} {} { proc {system ip} {} { # try for a usable IP address of the machine (w/o parsing hosts file) set ip "127.0.0.1" - if {![catch {set mysock [socket dgram "[os.gethostname]:0"]]}]} { + if {![catch {set mysock [socket dgram "[os.gethostname]:0"]}]} { set myip "" catch { set myip [lindex [split [$mysock sockname] ":"] 0] $mysock close }