Changeset 24 in code for trunk/morty.go
- Timestamp:
- Oct 30, 2016, 6:31:13 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/morty.go
r23 r24 29 29 30 30 var CLIENT *fasthttp.Client = &fasthttp.Client{ 31 Dial: fasthttp.DialDualStack,32 31 MaxResponseBodySize: 10 * 1024 * 1024, // 10M 33 32 } … … 641 640 listen := flag.String("listen", "127.0.0.1:3000", "Listen address") 642 641 key := flag.String("key", "", "HMAC url validation key (hexadecimal encoded) - leave blank to disable") 642 ipv6 := flag.Bool("ipv6", false, "Allow IPv6 HTTP requests") 643 643 requestTimeout := flag.Uint("timeout", 2, "Request timeout") 644 644 flag.Parse() 645 645 646 if *ipv6 { 647 CLIENT.Dial = fasthttp.DialDualStack 648 } 649 646 650 p := &Proxy{RequestTimeout: time.Duration(*requestTimeout) * time.Second} 647 651
Note:
See TracChangeset
for help on using the changeset viewer.