mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-07-27 23:19:58 +00:00
TUN-3555: Single origin service should default to localhost:8080
This commit is contained in:
@@ -369,6 +369,7 @@ func StartServer(
|
|||||||
|
|
||||||
tunnelConfig, ingressRules, err := prepareTunnelConfig(c, buildInfo, version, generalLogger, transportLogger, namedTunnel, isUIEnabled)
|
tunnelConfig, ingressRules, err := prepareTunnelConfig(c, buildInfo, version, generalLogger, transportLogger, namedTunnel, isUIEnabled)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
generalLogger.Errorf("Couldn't start tunnel: %v", err)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -103,7 +103,8 @@ func parseSingleOriginService(c *cli.Context, allowURLFromArgs bool) (OriginServ
|
|||||||
}
|
}
|
||||||
return &unixSocketPath{path: path}, nil
|
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.
|
// IsEmpty checks if there are any ingress rules.
|
||||||
|
Reference in New Issue
Block a user