From 63676f492729c543b681981c2e21a138e5f6365c Mon Sep 17 00:00:00 2001 From: Page Fault Date: Tue, 14 Jul 2020 16:55:59 +0000 Subject: [PATCH] fix url api --- url/option.go | 1 + 1 file changed, 1 insertion(+) diff --git a/url/option.go b/url/option.go index 47ea3caf9..6920444da 100644 --- a/url/option.go +++ b/url/option.go @@ -124,6 +124,7 @@ func (u *url) Handle() error { } listenPort = int(lp) case "api": + apiEnabled = true h, p, err := net.SplitHostPort(val) if err != nil { log.Fatal(err)