File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments