|
70 | 70 | rate time.Duration |
71 | 71 | cc bool |
72 | 72 | tor bool |
73 | | - daily bool |
| 73 | + daily bool |
74 | 74 | json bool |
75 | 75 | ca x509.CertPool |
76 | 76 | d4error uint8 |
@@ -113,17 +113,17 @@ var ( |
113 | 113 | tmpretry, _ = time.ParseDuration("30s") |
114 | 114 | tmprate, _ = time.ParseDuration("200ms") |
115 | 115 |
|
116 | | - confdir = flag.String("c", "", "configuration directory") |
117 | | - debug = flag.Bool("v", false, "Set to True, true, TRUE, 1, or t to enable verbose output on stdout - Don't use in production") |
118 | | - ce = flag.Bool("ce", true, "Set to True, true, TRUE, 1, or t to enable TLS on network destination") |
119 | | - ct = flag.Duration("ct", tmpct, "Set timeout in human format") |
120 | | - cka = flag.Duration("cka", tmpcka, "Keep Alive time human format, 0 to disable") |
121 | | - retry = flag.Duration("rt", tmpretry, "Time in human format before retry after connection failure, set to 0 to exit on failure") |
122 | | - rate = flag.Duration("rl", tmprate, "Rate limiter: time in human format before retry after EOF") |
123 | | - cc = flag.Bool("cc", false, "Check TLS certificate against rootCA.crt") |
124 | | - torflag = flag.Bool("tor", false, "Use a SOCKS5 tor proxy on 9050") |
125 | | - dailyflag = flag.Bool("daily", false, "Sets up filewatcher to watch a new %Y%M%D folder at midnight") |
126 | | - jsonflag = flag.Bool("json", false, "The files watched are json files") |
| 116 | + confdir = flag.String("c", "", "configuration directory") |
| 117 | + debug = flag.Bool("v", false, "Set to True, true, TRUE, 1, or t to enable verbose output on stdout - Don't use in production") |
| 118 | + ce = flag.Bool("ce", true, "Set to True, true, TRUE, 1, or t to enable TLS on network destination") |
| 119 | + ct = flag.Duration("ct", tmpct, "Set timeout in human format") |
| 120 | + cka = flag.Duration("cka", tmpcka, "Keep Alive time human format, 0 to disable") |
| 121 | + retry = flag.Duration("rt", tmpretry, "Time in human format before retry after connection failure, set to 0 to exit on failure") |
| 122 | + rate = flag.Duration("rl", tmprate, "Rate limiter: time in human format before retry after EOF") |
| 123 | + cc = flag.Bool("cc", false, "Check TLS certificate against rootCA.crt") |
| 124 | + torflag = flag.Bool("tor", false, "Use a SOCKS5 tor proxy on 9050") |
| 125 | + dailyflag = flag.Bool("daily", false, "Sets up filewatcher to watch a new %Y%M%D folder at midnight") |
| 126 | + jsonflag = flag.Bool("json", false, "The files watched are json files") |
127 | 127 | ) |
128 | 128 |
|
129 | 129 | func main() { |
@@ -522,7 +522,7 @@ func setReaderWriters(d4 *d4S, force bool) bool { |
522 | 522 | } |
523 | 523 | case "folder": |
524 | 524 | var err error |
525 | | - (*d4).src, err = inputreader.NewFileWatcherReader((*d4).conf.folderstr, (*d4).json, (*d4).daily) |
| 525 | + (*d4).src, err = inputreader.NewFileWatcherReader((*d4).conf.folderstr, (*d4).json, (*d4).daily, logger) |
526 | 526 | if err != nil { |
527 | 527 | log.Printf("Could not create File Watcher %q \n", err) |
528 | 528 | return false |
|
0 commit comments