You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fs.Var(&dnsTTLFlag{&opts.dnsTTL}, "dns-ttl", "Cache DNS lookups for the given duration [-1 = disabled, 0 = forever]")
64
64
fs.BoolVar(&opts.sessionTickets, "session-tickets", false, "Enable TLS session resumption using session tickets")
65
+
fs.Var(&connectToFlag{&opts.connectTo}, "connect-to", "A mapping of (ip|host):port to use instead of a target URL's (ip|host):port. Can be repeated multiple times.\nIdentical src:port with different dst:port will round-robin over the different dst:port pairs.\nExample: google.com:80:localhost:6060")
65
66
systemSpecificFlags(fs, opts)
66
67
67
68
returncommand{fs, func(args []string) error {
@@ -108,6 +109,7 @@ type attackOpts struct {
108
109
promAddrstring
109
110
dnsTTL time.Duration
110
111
sessionTicketsbool
112
+
connectTomap[string][]string
111
113
}
112
114
113
115
// attack validates the attack arguments, sets up the
0 commit comments