Skip to content

Commit 907a57e

Browse files
committed
feat: allow the ssh host ip to be an empty string
1 parent 2f03284 commit 907a57e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

internal/server/server.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
)
2424

2525
const (
26-
defaultHost = "0.0.0.0"
26+
defaultHost = ""
2727
defaultPort = "23234"
2828
defaultHostKeyPath = ".ssh/id_ed25519"
2929
defaultDBPath = "./wordle-stats.db"
@@ -44,9 +44,6 @@ type Config struct {
4444
// LoadConfigFromEnv loads configuration from environment variables
4545
func LoadConfigFromEnv() Config {
4646
host := os.Getenv("WORDLE_SSH_HOST")
47-
if host == "" {
48-
host = defaultHost
49-
}
5047

5148
port := os.Getenv("WORDLE_SSH_PORT")
5249
if port == "" {

0 commit comments

Comments
 (0)