Changeset 74 in code for trunk/morty.go
- Timestamp:
- Jan 30, 2018, 6:46:11 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/morty.go
r72 r74 33 33 STATE_IN_NOSCRIPT int = 2 34 34 ) 35 36 const VERSION = "v0.1.0" 35 37 36 38 var CLIENT *fasthttp.Client = &fasthttp.Client{ … … 970 972 key := flag.String("key", "", "HMAC url validation key (hexadecimal encoded) - leave blank to disable") 971 973 ipv6 := flag.Bool("ipv6", false, "Allow IPv6 HTTP requests") 974 version := flag.Bool("version", false, "Show version") 972 975 requestTimeout := flag.Uint("timeout", 2, "Request timeout") 973 976 flag.Parse() 974 977 978 if *version { 979 fmt.Println(VERSION) 980 return 981 } 982 975 983 if *ipv6 { 976 984 CLIENT.Dial = fasthttp.DialDualStack
Note:
See TracChangeset
for help on using the changeset viewer.