more browser fixes.

This commit is contained in:
Christopher Jeffrey 2016-06-06 14:18:08 -07:00
parent f59ecaeb7f
commit c97551ba1f
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
2 changed files with 2 additions and 1 deletions

View File

@ -199,6 +199,7 @@ more bitcoin magic).</small>
if (items.length === 20) {
el = items.shift();
tdiv.removeChild(el);
el.onmouseup = null;
}
el = create('<a style="display:block;" href="#'

View File

@ -78,7 +78,7 @@ module.exports = function wsproxy(options) {
}
}
if (!/^[a-zA-Z0-9\.:]+$/.test(host)) {
if (!/^[a-zA-Z0-9\.:\-]+$/.test(host)) {
utils.error('Client gave a bad host.');
ws.emit('tcp close');
ws.disconnect();