mirror of
https://github.com/dcarrillo/whatismyip.git
synced 2025-10-14 03:19:10 +00:00
Add tests for new disable-scan flag
This commit is contained in:
@@ -77,6 +77,17 @@ func TestParseFlags(t *testing.T) {
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
[]string{"-disable-scan"},
|
||||
settings{
|
||||
BindAddress: ":8080",
|
||||
Server: serverSettings{
|
||||
ReadTimeout: 10 * time.Second,
|
||||
WriteTimeout: 10 * time.Second,
|
||||
},
|
||||
DisableTCPScan: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
[]string{"-bind", ":8001", "-geoip2-city", "/city-path", "-geoip2-asn", "/asn-path"},
|
||||
settings{
|
||||
|
Reference in New Issue
Block a user