Skip to content

Commit

Permalink
use connect.ngrok-agent.com rather than tunnel.ngrok.com
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobsonchase committed Aug 9, 2023
1 parent 3f355c8 commit 5fb9460
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions session.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ type Session interface {
//go:embed assets/ngrok.ca.crt
var defaultCACert []byte

const defaultServer = "tunnel.ngrok.com:443"
const defaultServer = "connect.ngrok-agent.com:443"

// Dialer is the interface a custom connection dialer must implement for use
// with the [WithDialer] option.
Expand Down Expand Up @@ -127,7 +127,7 @@ type connectConfig struct {
// Your ngrok Authtoken.
Authtoken proto.ObfuscatedString
// The address of the ngrok server to connect to.
// Defaults to `tunnel.ngrok.com:443`
// Defaults to `connect.ngrok-agent.com:443`
ServerAddr string
// The [tls.Config] used when connecting to the ngrok server
TLSConfigCustomizer func(*tls.Config)
Expand Down Expand Up @@ -255,7 +255,7 @@ func WithAuthtokenFromEnv() ConnectOption {
func WithRegion(region string) ConnectOption {
return func(cfg *connectConfig) {
if region != "" {
cfg.ServerAddr = fmt.Sprintf("tunnel.%s.ngrok.com:443", region)
cfg.ServerAddr = fmt.Sprintf("connect.%s.ngrok-agent.com:443", region)
}
}
}
Expand Down

0 comments on commit 5fb9460

Please sign in to comment.