Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 52793ac244 | |||
| f8a1ae841d | |||
| 9d424742d6 |
@@ -67,14 +67,14 @@ func (s *Service) GetFullAddr() string {
|
|||||||
func (s *Service) Register() error {
|
func (s *Service) Register() error {
|
||||||
def := &consul.AgentServiceRegistration{
|
def := &consul.AgentServiceRegistration{
|
||||||
ID: s.GetID(),
|
ID: s.GetID(),
|
||||||
Kind: consul.ServiceKindConnectProxy,
|
// Kind: consul.ServiceKindConnectProxy,
|
||||||
Name: s.Name,
|
Name: s.Name,
|
||||||
Address: s.Address,
|
Address: s.Address,
|
||||||
Port: s.port,
|
Port: s.port,
|
||||||
Tags: s.getTags(),
|
Tags: s.getTags(),
|
||||||
Connect: &consul.AgentServiceConnect{
|
Connect: &consul.AgentServiceConnect{
|
||||||
SidecarService: &consul.AgentServiceRegistration{
|
SidecarService: &consul.AgentServiceRegistration{
|
||||||
// Port: s.port,
|
Port: s.port,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Proxy: &consul.AgentServiceConnectProxyConfig{
|
Proxy: &consul.AgentServiceConnectProxyConfig{
|
||||||
|
|||||||
Reference in New Issue
Block a user