TUN-3555: Single origin service should default to localhost:8080

This commit is contained in:
Adam Chalmers 2020-11-17 14:47:40 -06:00
parent 58c5e25b9a
commit 029f7e0378
2 changed files with 3 additions and 1 deletions

View File

@ -369,6 +369,7 @@ func StartServer(
tunnelConfig, ingressRules, err := prepareTunnelConfig(c, buildInfo, version, generalLogger, transportLogger, namedTunnel, isUIEnabled)
if err != nil {
generalLogger.Errorf("Couldn't start tunnel: %v", err)
return err
}

View File

@ -103,7 +103,8 @@ func parseSingleOriginService(c *cli.Context, allowURLFromArgs bool) (OriginServ
}
return &unixSocketPath{path: path}, nil
}
return nil, errors.New("You must either set ingress rules in your config file, or use --url, or use --unix-socket")
u, err := url.Parse("http://localhost:8080")
return &localService{URL: u, RootURL: u}, err
}
// IsEmpty checks if there are any ingress rules.