@@ -69,20 +69,20 @@ func main() {
69
69
70
70
flag .StringVar (& listenSyslog , "listenSyslog" , "0.0.0.0:1514" , "ip:port to listen for syslog messages" )
71
71
flag .StringVar (& listenHTTP , "listenHTTP" , "0.0.0.0:11080" , "ip:port to listen for http requests" )
72
- flag .StringVar (& uriPrefixFile , "uriPrefixFile" , "" , "file with allowed URI prefixes - one per line. If not specified - no per-URI stats gathered" )
73
- flag .StringVar (& geoipCountryDB , "geoipCountryDB" , "" , "path to MaxMind GeoIP country DB. If not specified - no lookups performed" )
72
+ flag .StringVar (& uriPrefixFile , "uriPrefixFile" , "- " , "file with allowed URI prefixes - one per line. If not specified - no per-URI stats gathered" )
73
+ flag .StringVar (& geoipCountryDB , "geoipCountryDB" , "- " , "path to MaxMind GeoIP country DB. If not specified - no lookups performed" )
74
74
flag .BoolVar (& debug , "debug" , false , "Enable debug" )
75
75
flag .Parse ()
76
76
77
- if uriPrefixFile != "" {
77
+ if uriPrefixFile != "- " {
78
78
if uriTree , err = uriLoad (uriPrefixFile ); err != nil {
79
79
log .Fatalf ("Unable to load URIs: %s" , err )
80
80
}
81
81
82
82
log .Printf ("URI prefixes loaded: %d" , uriTree .Len ())
83
83
}
84
84
85
- if geoipCountryDB != "" {
85
+ if geoipCountryDB != "- " {
86
86
if geoipDB , err = geoip .New (geoipCountryDB ); err != nil {
87
87
log .Fatalf ("Unable to load GeoIP database: %s" , err )
88
88
}
0 commit comments