We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a21af4f commit d8e6be6Copy full SHA for d8e6be6
respounder.go
@@ -49,19 +49,20 @@ var (
49
`Creates a debug.log file with a trace of the program`)
50
51
compPtr = flag.String("computername", "aweirdcomputername",
52
- `Overrides the default computer name`)
+ `Overrides the default computer name, requires at least 16 charcter hostname`)
53
54
)
55
56
func main() {
57
initFlags()
58
-
59
- fmt.Fprintln(os.Stderr, Banner)
+ flag.Parse()
60
61
if *compPtr != "aweirdcomputername" {
62
- computerName = *compPtr
+ computerName = string(*compPtr)
63
}
64
+ fmt.Fprintln(os.Stderr, Banner)
65
+
66
interfaces, _ := net.Interfaces()
67
logger.Println("======== Starting RESPOUNDER ========")
68
logger.Printf("List of all interfaces: \n %+v\n", interfaces)
0 commit comments