Skip to content

Commit 5737936

Browse files
committed
Fix set local ip
1 parent 2ba05ee commit 5737936

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/notation.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ func notate(str string) (nt tNotation) {
2828
if isIPv4Full(nt.Pre) {
2929
nt.Exp = nt.Pre
3030
} else {
31-
localIP = getLocalIP().String()
31+
if localIP == "" {
32+
localIP = getLocalIP().String()
33+
}
3234
nt.Exp = replaceTail(localIP, nt.Pre)
3335
}
3436

0 commit comments

Comments
 (0)