Skip to content

Commit 354d8a8

Browse files
committed
Add comment about using localhost listeners for the web config.
1 parent b12e0bb commit 354d8a8

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

cmd/outline-ss-server/config.go

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,17 @@ const (
3838
)
3939

4040
type WebServerConfig struct {
41-
ID string
41+
ID string
42+
43+
// List of listener addresses (e.g., ":8080", "localhost:8081"). Should be localhost for HTTP.
4244
Listeners []string `yaml:"listen"`
4345
}
4446

4547
type ListenerConfig struct {
4648
Type ListenerType
47-
Address string `yaml:",omitempty"`
48-
WebServer string `yaml:"web_server,omitempty"`
49-
Path string `yaml:",omitempty"`
49+
Address string `yaml:",omitempty"`
50+
WebServer string `yaml:"web_server,omitempty"`
51+
Path string `yaml:",omitempty"`
5052
}
5153

5254
type DialerConfig struct {
@@ -69,12 +71,12 @@ type WebConfig struct {
6971
}
7072

7173
type Config struct {
72-
Web WebConfig
73-
Services []ServiceConfig
74+
Web WebConfig
75+
Services []ServiceConfig
7476

7577
// Deprecated: `keys` exists for backward compatibility. Prefer to configure
7678
// using the newer `services` format.
77-
Keys []LegacyKeyServiceConfig
79+
Keys []LegacyKeyServiceConfig
7880
}
7981

8082
// Validate checks that the config is valid.

0 commit comments

Comments
 (0)