Skip to content

Commit

Permalink
Update config.go (openyurtio#491)
Browse files Browse the repository at this point in the history
it maybe null point
  • Loading branch information
guoguodan authored and YRXING committed Oct 9, 2021
1 parent 8e16d01 commit 8e8d6c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/yurthub/app/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ func Complete(options *options.YurtHubOptions) (*YurtHubConfiguration, error) {
}

func parseRemoteServers(serverAddr string) ([]*url.URL, error) {
if serverAddr == "" {
return make([]*url.URL, 0), fmt.Errorf("--server-addr should be set for hub agent")
}
servers := strings.Split(serverAddr, ",")
us := make([]*url.URL, 0, len(servers))
remoteServers := make([]string, 0, len(servers))
Expand Down

0 comments on commit 8e8d6c0

Please sign in to comment.