Skip to content

Commit

Permalink
change validate() for supporting network aliases in free5gc-compose (#49
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ianchen0119 authored Apr 9, 2022
1 parent bb8f30e commit 84c979a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/factory/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ func (i *InterfaceUpfInfoItem) validate() (bool, error) {
}

for _, endpoint := range i.Endpoints {
if result := govalidator.IsIPv4(endpoint); !result {
if result := govalidator.IsHost(endpoint); !result {
err := errors.New("Invalid endpoint:" + endpoint + ", should be IPv4.")
return false, err
}
Expand Down

0 comments on commit 84c979a

Please sign in to comment.