| 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. | ||
|---|---|---|
| .. | ||
| app | ||
| config | ||
| deploy | ||
| Hledger | ||
| static | ||
| templates | ||
| test | ||
| .eslintrc.js | ||
| .ghci | ||
| .version | ||
| CHANGES.md | ||
| defs.m4 | ||
| hledger-web.1 | ||
| hledger-web.cabal | ||
| hledger-web.info | ||
| hledger-web.m4.md | ||
| hledger-web.txt | ||
| LICENSE | ||
| package.yaml | ||
| README | ||
| Setup.hs | ||
A basic web UI for hledger data. Intended to be robust and somewhat useful.