Skip to content

Commit a8e7fa4

Browse files
Merge pull request inconshreveable#339 from RealDigitalMedia/default_inspect_addr
Give inspect address a default setting
2 parents 62eba1e + 8713b4b commit a8e7fa4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/ngrok/client/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func LoadConfiguration(opts *Options) (config *Configuration, err error) {
7373
}
7474

7575
if config.InspectAddr == "" {
76-
config.InspectAddr = "127.0.0.1:4040"
76+
config.InspectAddr = defaultInspectAddr
7777
}
7878

7979
if config.HttpProxy == "" {

src/ngrok/client/model.go

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import (
2222

2323
const (
2424
defaultServerAddr = "ngrokd.ngrok.com:443"
25+
defaultInspectAddr = "127.0.0.1:4040"
2526
pingInterval = 20 * time.Second
2627
maxPongLatency = 15 * time.Second
2728
updateCheckInterval = 6 * time.Hour

0 commit comments

Comments
 (0)