Strip port from address everywhere on the client
This commit is contained in:
parent
d2284551de
commit
f6d13675c3
3 changed files with 163 additions and 149 deletions
|
@ -176,7 +176,11 @@ export default createReducer(Map(), {
|
|||
},
|
||||
|
||||
[actions.CONNECT](state, action) {
|
||||
const { server } = action;
|
||||
let { server } = action;
|
||||
const i = server.indexOf(':');
|
||||
if (i > 0) {
|
||||
server = server.slice(0, i);
|
||||
}
|
||||
if (!state.has(server)) {
|
||||
return state.set(server, Map());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue