Skip to content

Commit 2b9eae1

Browse files
committed
Re-enabled extra byte option
1 parent ffab59b commit 2b9eae1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

netcat/main.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,22 @@ func main() {
3232
port uint16
3333
useIASCIONDPath bool
3434
extraByte bool
35-
)
36-
flag.Usage = printUsage
35+
)
36+
flag.Usage = printUsage
3737
flag.BoolVar(&useIASCIONDPath, "local", false, "Use IA SCIOND Path")
38-
flag.BoolVar(&useIASCIONDPath, "b", false, "Send extra byte")
38+
flag.BoolVar(&extraByte, "b", false, "Send extra byte")
3939
flag.Parse()
4040

4141
tail := flag.Args()
4242
if len(tail) != 2 {
43-
printUsage()
43+
printUsage()
4444
golog.Panicf("Number of arguments is not two! Arguments: %v", tail)
4545
}
4646

4747
serverAddress = tail[0]
4848
port64, err := strconv.ParseUint(tail[1], 10, 16)
4949
if err != nil {
50-
printUsage()
50+
printUsage()
5151
golog.Panicf("Can't parse port string %v: %v", port64, err)
5252
}
5353
port = uint16(port64)

0 commit comments

Comments
 (0)