Skip to content

Commit

Permalink
Explicitly bind 0.0.0.0 so tutorial servers work on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
TravisWhitaker committed Dec 27, 2024
1 parent 08a774c commit 868c337
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tutorials/basics/app/Server.hs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,6 @@ main = do
where
config :: ServerConfig
config = ServerConfig {
serverInsecure = Just (InsecureConfig Nothing defaultInsecurePort)
serverInsecure = Just (InsecureConfig (Just "0.0.0.0") defaultInsecurePort)
, serverSecure = Nothing
}
2 changes: 1 addition & 1 deletion tutorials/lowlevel/app/Server.hs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,6 @@ main = do
where
config :: ServerConfig
config = ServerConfig {
serverInsecure = Just (InsecureConfig Nothing defaultInsecurePort)
serverInsecure = Just (InsecureConfig (Just "0.0.0.0") defaultInsecurePort)
, serverSecure = Nothing
}
2 changes: 1 addition & 1 deletion tutorials/metadata/app/Server.hs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@ main =
where
config :: ServerConfig
config = ServerConfig {
serverInsecure = Just (InsecureConfig Nothing defaultInsecurePort)
serverInsecure = Just (InsecureConfig (Just "0.0.0.0") defaultInsecurePort)
, serverSecure = Nothing
}
2 changes: 1 addition & 1 deletion tutorials/monadstack/app/Server.hs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,6 @@ main = do
where
config :: ServerConfig
config = ServerConfig {
serverInsecure = Just (InsecureConfig Nothing defaultInsecurePort)
serverInsecure = Just (InsecureConfig (Just "0.0.0.0") defaultInsecurePort)
, serverSecure = Nothing
}
2 changes: 1 addition & 1 deletion tutorials/quickstart/app/Server.hs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ main =
where
config :: ServerConfig
config = ServerConfig {
serverInsecure = Just (InsecureConfig Nothing defaultInsecurePort)
serverInsecure = Just (InsecureConfig (Just "0.0.0.0") defaultInsecurePort)
, serverSecure = Nothing
}
2 changes: 1 addition & 1 deletion tutorials/trailers-only/app/Server.hs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,6 @@ main = do
where
config :: ServerConfig
config = ServerConfig {
serverInsecure = Just (InsecureConfig Nothing defaultInsecurePort)
serverInsecure = Just (InsecureConfig (Just "0.0.0.0") defaultInsecurePort)
, serverSecure = Nothing
}

0 comments on commit 868c337

Please sign in to comment.