mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Make go-tools happy
Signed-off-by: Christoph Ziebuhr <chris@codefrickler.de>
This commit is contained in:
parent
40923e7353
commit
6362d28969
2 changed files with 2 additions and 4 deletions
|
@ -280,7 +280,7 @@ func (r *resolver) handleIPQuery(name string, query *dns.Msg, ipType int) (*dns.
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *resolver) handlePTRQuery(ptr string, query *dns.Msg) (*dns.Msg, error) {
|
func (r *resolver) handlePTRQuery(ptr string, query *dns.Msg) (*dns.Msg, error) {
|
||||||
parts := []string{}
|
var parts []string
|
||||||
|
|
||||||
if strings.HasSuffix(ptr, ptrIPv4domain) {
|
if strings.HasSuffix(ptr, ptrIPv4domain) {
|
||||||
parts = strings.Split(ptr, ptrIPv4domain)
|
parts = strings.Split(ptr, ptrIPv4domain)
|
||||||
|
|
|
@ -351,9 +351,7 @@ func (sb *sandbox) getConnectedEndpoints() []*endpoint {
|
||||||
defer sb.Unlock()
|
defer sb.Unlock()
|
||||||
|
|
||||||
eps := make([]*endpoint, len(sb.endpoints))
|
eps := make([]*endpoint, len(sb.endpoints))
|
||||||
for i, ep := range sb.endpoints {
|
copy(eps, sb.endpoints)
|
||||||
eps[i] = ep
|
|
||||||
}
|
|
||||||
|
|
||||||
return eps
|
return eps
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue