Fixed default port bug in the LSP

This commit is contained in:
ThatGuy 2013-08-28 16:23:15 +02:00
parent 59b21d94ec
commit 91184ebc71

View file

@ -614,8 +614,13 @@
}; };
$('input').each(function(){ $('input').each(function(){
newprotocol[$(this).attr('id').split('-')[2]] = $(this).val();;
if($(this).val() != '')
{
newprotocol[$(this).attr('id').split('-')[2]] = $(this).val();
}
}); });
newprotocol.online = -1; newprotocol.online = -1;
if (streamname == 'new') { if (streamname == 'new') {
settings.settings.config.protocols.push(newprotocol); settings.settings.config.protocols.push(newprotocol);