diff options
Diffstat (limited to 'internal/form/repo.go')
-rw-r--r-- | internal/form/repo.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/form/repo.go b/internal/form/repo.go index adcbc66a..5750d78e 100644 --- a/internal/form/repo.go +++ b/internal/form/repo.go @@ -72,8 +72,8 @@ func (f MigrateRepo) ParseRemoteAddr(user *db.User) (string, error) { return "", db.ErrInvalidCloneAddr{IsURLError: true} } - if netutil.IsLocalHostname(u.Hostname(), conf.Security.LocalNetworkAllowlist) { - return "", db.ErrInvalidCloneAddr{IsURLError: true} + if netutil.IsBlockedLocalHostname(u.Hostname(), conf.Security.LocalNetworkAllowlist) { + return "", db.ErrInvalidCloneAddr{IsBlockedLocalAddress: true} } if len(f.AuthUsername)+len(f.AuthPassword) > 0 { |