diff --git a/restagent/restagent.go b/restagent/restagent.go index d1a73d6a..94011906 100644 --- a/restagent/restagent.go +++ b/restagent/restagent.go @@ -158,7 +158,7 @@ func main() { if rest.IPv4 != "" { listen := rest.IPv4 + ":" + strconv.Itoa(int(rest.Port)) if strings.ToLower(rest.Schema) == "https" { - go HttpListenConfigTLS(listen, rest.CaFile, rest.CertFile, rest.KeyFile, router) + go HttpListenTLS(listen, rest.CertFile, rest.KeyFile, router) } else { go HttpListen(listen, router) } @@ -168,7 +168,7 @@ func main() { if rest.IPv6 != "" { listenv6 := "[" + rest.IPv6 + "]" + ":" + strconv.Itoa(int(rest.Port)) if strings.ToLower(rest.Schema) == "https" { - go HttpListenConfigTLS(listenv6, rest.CaFile, rest.CertFile, rest.KeyFile, router) + go HttpListenTLS(listenv6, rest.CertFile, rest.KeyFile, router) } else { go HttpListen(listenv6, router) }