Skip to content

Commit 008d307

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

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

internal/server/server.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import (
2323
)
2424

2525
const (
26-
defaultHost = ""
2726
defaultPort = "23234"
2827
defaultHostKeyPath = ".ssh/id_ed25519"
2928
defaultDBPath = "./wordle-stats.db"
@@ -102,10 +101,6 @@ type Server struct {
102101

103102
// New creates a new SSH server
104103
func New(config Config) (*Server, error) {
105-
if config.Host == "" {
106-
config.Host = defaultHost
107-
}
108-
109104
if config.Port == "" {
110105
config.Port = defaultPort
111106
}

0 commit comments

Comments
 (0)