Merge pull request #31 from timjnh/cross_platform_compatibility
Cross-platform compatibility for /dev/null
This commit is contained in:
3
attack_test.go
Normal file → Executable file
3
attack_test.go
Normal file → Executable file
@@ -8,6 +8,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
"os"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
@@ -95,6 +96,6 @@ func defaultArguments() (uint64, time.Duration, string, string, string, http.Hea
|
|||||||
5 * time.Millisecond,
|
5 * time.Millisecond,
|
||||||
".targets.txt",
|
".targets.txt",
|
||||||
"random",
|
"random",
|
||||||
"/dev/null",
|
os.DevNull,
|
||||||
http.Header{}
|
http.Header{}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user