Remove source IP option (#356)
This commit is contained in:
parent
2405a0f37e
commit
11f0b8bd38
|
@ -17,7 +17,6 @@ type Config struct {
|
|||
InputFileName string `short:"f" long:"input-file" default:"-" description:"Input filename, use - for stdin"`
|
||||
MetaFileName string `short:"m" long:"metadata-file" default:"-" description:"Metadata filename, use - for stderr"`
|
||||
LogFileName string `short:"l" long:"log-file" default:"-" description:"Log filename, use - for stderr"`
|
||||
LocalAddress string `long:"source-ip" description:"Local source IP address to use for making connections"`
|
||||
Senders int `short:"s" long:"senders" default:"1000" description:"Number of send goroutines to use"`
|
||||
Debug bool `long:"debug" description:"Include debug fields in the output."`
|
||||
Flush bool `long:"flush" description:"Flush after each line of output."`
|
||||
|
@ -65,14 +64,6 @@ func validateFrameworkConfiguration() {
|
|||
}
|
||||
SetInputFunc(InputTargetsCSV)
|
||||
|
||||
if config.LocalAddress != "" {
|
||||
parsed := net.ParseIP(config.LocalAddress)
|
||||
if parsed == nil {
|
||||
log.Fatalf("Error parsing local interface %s as IP", config.LocalAddress)
|
||||
}
|
||||
config.localAddr = &net.TCPAddr{parsed, 0, ""}
|
||||
}
|
||||
|
||||
if config.InputFileName == "-" {
|
||||
config.inputFile = os.Stdin
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue