mirror of
https://github.com/MengMengCode/CLICD.git
synced 2026-08-06 05:52:19 +08:00
feat: implement safe HTTP client and URL validation for secure downloads
This commit is contained in:
@@ -837,7 +837,7 @@ func createNATReservationOwner(name string) string {
|
||||
}
|
||||
|
||||
func createNATReservationMappings(cfg ContainerConfig, managementPort int) []config.PortMapping {
|
||||
reservations := make([]config.PortMapping, 0, len(cfg.NATPortMappings)+1)
|
||||
reservations := make([]config.PortMapping, 0, len(cfg.NATPortMappings))
|
||||
if managementPort > 0 {
|
||||
reservations = append(reservations, config.PortMapping{HostPort: managementPort, Protocol: "tcp"})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user