Set default listen address to localhost

This commit is contained in:
Will Owens 2022-02-27 22:26:17 -05:00
parent d801d9ec51
commit c31aadbf00
2 changed files with 4 additions and 4 deletions

View file

@ -200,7 +200,7 @@ func staticJsGottyBundleJs() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "static/js/gotty-bundle.js", size: 665001, mode: os.FileMode(420), modTime: time.Unix(1646016572, 0)}
info := bindataFileInfo{name: "static/js/gotty-bundle.js", size: 665001, mode: os.FileMode(420), modTime: time.Unix(1646018728, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@ -220,7 +220,7 @@ func staticJsGottyBundleJsLicenseTxt() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "static/js/gotty-bundle.js.LICENSE.txt", size: 5807, mode: os.FileMode(420), modTime: time.Unix(1646016453, 0)}
info := bindataFileInfo{name: "static/js/gotty-bundle.js.LICENSE.txt", size: 5807, mode: os.FileMode(420), modTime: time.Unix(1646018728, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@ -240,7 +240,7 @@ func staticJsGottyBundleJsMap() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "static/js/gotty-bundle.js.map", size: 1784330, mode: os.FileMode(420), modTime: time.Unix(1646016759, 0)}
info := bindataFileInfo{name: "static/js/gotty-bundle.js.map", size: 1784330, mode: os.FileMode(420), modTime: time.Unix(1646018728, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}

View file

@ -5,7 +5,7 @@ import (
)
type Options struct {
Address string `hcl:"address" flagName:"address" flagSName:"a" flagDescribe:"IP address to listen" default:"0.0.0.0"`
Address string `hcl:"address" flagName:"address" flagSName:"a" flagDescribe:"IP address to listen" default:"localhost"`
Port string `hcl:"port" flagName:"port" flagSName:"p" flagDescribe:"Port number to liten" default:"8080"`
PermitWrite bool `hcl:"permit_write" flagName:"permit-write" flagSName:"w" flagDescribe:"Permit clients to write to the TTY (BE CAREFUL)" default:"false"`
EnableBasicAuth bool `hcl:"enable_basic_auth" default:"false"`