Add bind_host setting requested by Artemis

This commit is contained in:
Cadence Ember
2023-03-08 22:53:07 +13:00
parent 29007b0e29
commit e0fec5fa9c
3 changed files with 8 additions and 3 deletions

View File

@@ -30,7 +30,9 @@
(define ch (make-channel))
(define (start)
(serve/launch/wait
#:listen-ip (if (config-true? 'debug) "127.0.0.1" #f)
#:listen-ip (if (equal? (config-get 'bind_host) "auto")
(if (config-true? 'debug) "127.0.0.1" #f)
(config-get 'bind_host))
#:port (string->number (config-get 'port))
(λ (quit)
(channel-put ch (lambda () (semaphore-post quit)))