Skip to content

Commit

Permalink
Merge pull request #65 from andrewhowdencom/add-listen-address
Browse files Browse the repository at this point in the history
Reintroduce listen address configuration
  • Loading branch information
andrewhowdencom committed Apr 17, 2024
2 parents d5f7d32 + e2841fd commit 01bad0f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/wire.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ func ResolveOptions() ([]Option, error) {

opts = append(opts, WithStorage(storage))

if addr := cfg.ServerListenAddress.Value(); addr != "" {
opts = append(opts, WithListenAddress(addr))
}

if cfg.ServerH2CEnabled.Value() {
opts = append(opts, WithH2C())
}
Expand Down

0 comments on commit 01bad0f

Please sign in to comment.