Skip to content

Commit b23ae70

Browse files
committed
config: add insecure HTTP only listener option
For uses of LiT through Tor connections that add their own layer of transport security, it doesn't make sense to add TLS on top. We therefore allow running an additional HTTP only listener.
1 parent 22c72ac commit b23ae70

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

config.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ var (
112112
// daemon's short name.
113113
type Config struct {
114114
HTTPSListen string `long:"httpslisten" description:"The host:port to listen for incoming HTTP/2 connections on for the web UI only."`
115+
HTTPListen string `long:"insecure-httplisten" description:"The host:port to listen on with TLS disabled. This is dangerous to enable as credentials will be submitted without encryption. Should only be used in combination with Tor hidden services or other external encryption."`
115116
UIPassword string `long:"uipassword" description:"The password that must be entered when using the loop UI. use a strong password to protect your node from unauthorized access through the web UI."`
116117
UIPasswordFile string `long:"uipassword_file" description:"Same as uipassword but instead of passing in the value directly, read the password from the specified file."`
117118
UIPasswordEnv string `long:"uipassword_env" description:"Same as uipassword but instead of passing in the value directly, read the password from the specified environment variable."`
@@ -329,7 +330,7 @@ func loadAndValidateConfig() (*Config, error) {
329330
if err := pool.Validate(cfg.Pool); err != nil {
330331
return nil, err
331332
}
332-
333+
333334
cfg.Faraday.Network = cfg.network
334335
if err := faraday.ValidateConfig(cfg.Faraday); err != nil {
335336
return nil, err

0 commit comments

Comments
 (0)