fix calc ipv6num use ipv4 slice (#838)

Co-authored-by: Charlie Stanley <charlie.stanley@microsoft.com>
This commit is contained in:
meijin 2021-05-05 09:25:19 +08:00 committed by GitHub
parent c314444b53
commit 8ea1f1bb44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -347,7 +347,7 @@ func (m *resolver) refreshAllApps(ctx context.Context) error {
m.ipv4Mu.RUnlock()
m.ipv6Mu.RLock()
numAppIPv6Addr := len(m.appAddressesIPv4)
numAppIPv6Addr := len(m.appAddressesIPv6)
m.ipv6Mu.RUnlock()
numApps := numAppIPv4Addr + numAppIPv6Addr