add client address option, fix noop resolver

This commit is contained in:
2021-11-22 14:04:47 +01:00
parent c6557d12f2
commit e8f0a2f03d
5 changed files with 28 additions and 20 deletions

View File

@ -34,7 +34,7 @@ type resolvr struct {
}
func (r *resolvr) run() {
if r.reg.String() == "noop" {
if r.reg.String() == "passthroug" {
return
}
var name, version string
@ -68,9 +68,9 @@ func (r *resolvr) run() {
}
// TODO(adphi): implement
switch res.Action {
case "create":
case registry.Create.String():
case "delete":
case registry.Delete.String():
}
r.cc.UpdateState(resolver.State{Addresses: r.addrs})