2
1
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2023-12-13 21:00:40 +01:00

Fixed mailgun config not allowing custom hosts with ports

no issue

- `mailgun()` expects the `host` option not to include a port but `url.host` will include the port, we instead want to use `url.hostname` which skips the port
This commit is contained in:
Kevin Ansfield 2020-07-30 17:28:28 +01:00
parent 56ceb1e312
commit 29d94e7814

View file

@ -11,7 +11,7 @@ function createMailgun(config) {
apiKey: config.apiKey,
domain: config.domain,
protocol: baseUrl.protocol,
host: baseUrl.host,
host: baseUrl.hostname,
port: baseUrl.port,
endpoint: baseUrl.pathname,
retry: 5