Skip to content

Commit 0040a61

Browse files
authored
fix domain verification issue (#167)
1 parent 34233e3 commit 0040a61

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

cmd/haproxy.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,8 @@ var haproxyStartCmd = &cobra.Command{
6666
}
6767
// base directory for socket file
6868
mountDir := filepath.Dir(systemConfig.HAProxyConfig.UnixSocketPath)
69-
// Service endpoint
70-
SERVICE_ENDPOINT := systemConfig.ServiceConfig.AddressOfCurrentNode
71-
if systemConfig.ServiceConfig.UseTLS {
72-
SERVICE_ENDPOINT = "https://" + SERVICE_ENDPOINT
73-
} else {
74-
SERVICE_ENDPOINT = "http://" + SERVICE_ENDPOINT
75-
}
7669
// add port
77-
SERVICE_ENDPOINT = SERVICE_ENDPOINT + ":" + strconv.Itoa(systemConfig.ServiceConfig.BindPort)
70+
SERVICE_ENDPOINT := systemConfig.ServiceConfig.AddressOfCurrentNode + ":" + strconv.Itoa(systemConfig.ServiceConfig.BindPort)
7871
// Start HAProxy service
7972
dockerCmd := exec.Command("docker", "service", "create",
8073
"--name", systemConfig.HAProxyConfig.ServiceName,

0 commit comments

Comments
 (0)