fix ParseAddress
This commit is contained in:
parent
47ee5fb4f4
commit
7cab173c7d
@ -381,7 +381,9 @@ func ParseAddress(addr string) (addrType AddressType, usc *UnixSocketConfig, sys
|
|||||||
err = fmt.Errorf("systemd socket fd address error. Exactly only one of name and idx has to be set. name: %v, idx: %v", sysc.FDName, sysc.FDIndex)
|
err = fmt.Errorf("systemd socket fd address error. Exactly only one of name and idx has to be set. name: %v, idx: %v", sysc.FDName, sysc.FDIndex)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
// Just assume as TCP address
|
||||||
|
return TCP, nil, nil, nil
|
||||||
}
|
}
|
||||||
// Just assume as TCP address
|
return
|
||||||
return TCP, nil, nil, nil
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user