Skip to content

Commit d8e6be6

Browse files
authored
Update respounder.go
1 parent a21af4f commit d8e6be6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

respounder.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,20 @@ var (
4949
`Creates a debug.log file with a trace of the program`)
5050

5151
compPtr = flag.String("computername", "aweirdcomputername",
52-
`Overrides the default computer name`)
52+
`Overrides the default computer name, requires at least 16 charcter hostname`)
5353

5454
)
5555

5656
func main() {
5757
initFlags()
58-
59-
fmt.Fprintln(os.Stderr, Banner)
58+
flag.Parse()
6059

6160
if *compPtr != "aweirdcomputername" {
62-
computerName = *compPtr
61+
computerName = string(*compPtr)
6362
}
6463

64+
fmt.Fprintln(os.Stderr, Banner)
65+
6566
interfaces, _ := net.Interfaces()
6667
logger.Println("======== Starting RESPOUNDER ========")
6768
logger.Printf("List of all interfaces: \n %+v\n", interfaces)

0 commit comments

Comments
 (0)