stash
This commit is contained in:
parent
419893d93d
commit
dae1528793
4 changed files with 104 additions and 19 deletions
|
|
@ -315,7 +315,12 @@ export default createStore({
|
|||
const request = '_toolshed-server._tcp.' + domain + '.'
|
||||
return await state.resolver.query(request, 'SRV').then(
|
||||
(result) => result.map(
|
||||
(answer) => answer.target + ':' + answer.port))
|
||||
// Must match what the browser actually puts in the Host header for
|
||||
// the request this gets used to build (federation.js always signs
|
||||
// and fetches "https://" + server + target) - it omits a :443 for
|
||||
// the default HTTPS port, so keeping it here would make every
|
||||
// signature check on the receiving end fail against the real request.
|
||||
(answer) => answer.port === 443 ? answer.target : answer.target + ':' + answer.port))
|
||||
},
|
||||
async getHomeServers({state, dispatch, commit}) {
|
||||
if (state.home_servers)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue