Skip to content

Commit d186a04

Browse files
committed
Merge pull request #21 from joeshaw/empty-addr-update
allow Addr update if it was previously unset
2 parents f2398ad + 59eee4c commit d186a04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

service.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ func (s *Service) UpdateConfig(cfg client.ServiceConfig) error {
170170
return ErrInvalidServiceUpdate
171171
}
172172

173-
if s.Addr != cfg.Addr {
173+
if s.Addr != "" && s.Addr != cfg.Addr {
174174
return ErrInvalidServiceUpdate
175175
}
176176

0 commit comments

Comments
 (0)