mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-28 12:54:07 +03:00
76ffaca466
This commit introduces IPv6 support (and thus closes #1145). It also allows using local hostnames as a parameter for --host. For this, multiple things needed to be changed: - checkWebOpts is dropped, as the supplied parameter is checked later by Network.Socket.getAddrInfo - defbaseurl needs to check if : is used in the host, as this indicates the usage of an IPv6 address. In this case, the host needs to be wrapped in [] for the base URL - To allow opening such a modified base URL, runHostPortFullUrl is used instead of runhostPortUrl, as it allows opening arbitrary URLs instead of a path prefixed with http://127.0.0.1 As checking the host for validity is postponed until the webserver tries to start, an invalid hostname leads to an exception caused by Network.Socket.getAddrInfo. This is still fine, as hledger-web won't start in an undefined state, but will terminate with a nonzero exit code.
22 lines
314 B
YAML
22 lines
314 B
YAML
# stack build plan using GHC 8.8.1
|
|
|
|
resolver: nightly-2020-01-06
|
|
# allow-newer: true
|
|
|
|
packages:
|
|
- hledger-lib
|
|
- hledger
|
|
- hledger-ui
|
|
- hledger-web
|
|
|
|
nix:
|
|
pure: false
|
|
packages: [perl gmp ncurses zlib]
|
|
|
|
extra-deps:
|
|
# for hledger-lib:
|
|
# for hledger:
|
|
# for hledger-ui:
|
|
# for hledger-web:
|
|
- wai-handler-launch-3.0.3
|