Skip to content

Commit

Permalink
switched to localhost webserver when no --remoteApi is passed. This p…
Browse files Browse the repository at this point in the history
…revents those firewall warnings!
  • Loading branch information
haraldsteinlechner committed Dec 17, 2024
1 parent 0291c8c commit 0eb94bc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/PRo3D.Viewer/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,13 @@ let main argv =
choose []

let suaveServer =
WebPart.startServer port [
let startServer =
if startupArgs.enableRemoteApi then
WebPart.startServer
else
WebPart.startServerLocalhost

startServer port [
if startupArgs.disableCors then allow_cors
MutableApp.toWebPart' runtime false mainApp
path "/websocket" >=> handShake ws
Expand Down

0 comments on commit 0eb94bc

Please sign in to comment.