mirror of
https://github.com/harness/drone.git
synced 2025-05-14 16:09:59 +08:00
fix: [CODE-760]: intenral mapping
This commit is contained in:
parent
16d44f9ba4
commit
e9aaf4991c
@ -39,7 +39,7 @@ func checkURL(rawURL string, allowLoopback bool, allowPrivateNetwork bool) error
|
|||||||
|
|
||||||
// basic validation for loopback / private network addresses (only sanitary to give user an early error)
|
// basic validation for loopback / private network addresses (only sanitary to give user an early error)
|
||||||
// IMPORTANT: during webook execution loopback / private network addresses are blocked (handles DNS resolution)
|
// IMPORTANT: during webook execution loopback / private network addresses are blocked (handles DNS resolution)
|
||||||
//
|
|
||||||
if host == "localhost" {
|
if host == "localhost" {
|
||||||
return check.NewValidationError("localhost is not allowed.")
|
return check.NewValidationError("localhost is not allowed.")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user