Default https
This commit is contained in:
parent
9a5c6c1f64
commit
effc71cec0
2
main.go
2
main.go
@ -49,7 +49,7 @@ func main() {
|
|||||||
ttl := flag.Int("ttl", defaultExpire, "短链接有效期,单位(天),默认90天。")
|
ttl := flag.Int("ttl", defaultExpire, "短链接有效期,单位(天),默认90天。")
|
||||||
conn := flag.String("conn", defaultRedisConfig, "Redis连接,格式: host:port")
|
conn := flag.String("conn", defaultRedisConfig, "Redis连接,格式: host:port")
|
||||||
passwd := flag.String("passwd", "", "Redis连接密码")
|
passwd := flag.String("passwd", "", "Redis连接密码")
|
||||||
https := flag.Int("https", 0, "是否返回 https 短链接")
|
https := flag.Int("https", 1, "是否返回 https 短链接")
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
if *domain == "" {
|
if *domain == "" {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user