Actually, this check is reduntant, move defering to network type check.
This commit is contained in:
parent
e9dc53e542
commit
1130568e39
@ -28,10 +28,6 @@ func main() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if !strings.ContainsRune(*listenAddress, ':') {
|
|
||||||
defer os.Remove(*listenAddress)
|
|
||||||
}
|
|
||||||
|
|
||||||
captcha.Init(*captchaExpire)
|
captcha.Init(*captchaExpire)
|
||||||
|
|
||||||
hand := handlers.New(*captchaExpire)
|
hand := handlers.New(*captchaExpire)
|
||||||
@ -45,6 +41,7 @@ func main() {
|
|||||||
var network string
|
var network string
|
||||||
if !strings.ContainsRune(*listenAddress, ':') {
|
if !strings.ContainsRune(*listenAddress, ':') {
|
||||||
network = "unix"
|
network = "unix"
|
||||||
|
defer os.Remove(*listenAddress)
|
||||||
} else {
|
} else {
|
||||||
ap, err := netip.ParseAddrPort(*listenAddress)
|
ap, err := netip.ParseAddrPort(*listenAddress)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user