Skip to content

Commit c3c8cbf

Browse files
committed
rename
1 parent 98afccf commit c3c8cbf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

main.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ import (
1616
func main() {
1717
listen := flag.String("listen", ":10000", "listen")
1818
network := flag.String("network", "tcp", "")
19-
notlsaction := flag.String("notlsaction", "notls", "")
20-
tlsaction := flag.String("tlsaction", "dunno", "")
19+
notlsaction := flag.String("notls", "reject", "")
20+
tlsaction := flag.String("tls", "dunno", "")
2121
flag.Parse()
2222

2323
listener, err := net.Listen(*network, *listen)
@@ -41,7 +41,6 @@ func main() {
4141
wg.Add(1)
4242
go func() {
4343
defer wg.Done()
44-
out:
4544
for {
4645
con, err := listener.Accept()
4746
if err != nil {
@@ -50,7 +49,7 @@ func main() {
5049
return
5150
default:
5251
fmt.Fprintf(os.Stderr, "Accept failed: %v\n", err)
53-
continue out
52+
continue
5453
}
5554
}
5655

@@ -102,5 +101,6 @@ func main() {
102101
}()
103102
}
104103
}()
104+
105105
wg.Wait()
106106
}

0 commit comments

Comments
 (0)