1
0
mirror of https://github.com/gusaul/grpcox.git synced 2024-12-26 10:50:11 +00:00

allow force restart conn from same connected host

This commit is contained in:
gusaul 2019-03-14 08:58:11 +07:00
parent cd19b9523b
commit fbc2dc74da

View File

@ -2,18 +2,19 @@ var target, use_tls, editor;
$('#get-services').click(function(){ $('#get-services').click(function(){
var t = get_valid_target(); var t = get_valid_target();
if (target != t) {
target = t;
use_tls = "false";
} else {
return false;
}
use_tls = "false";
var restart = "0" var restart = "0"
if($('#restart-conn').is(":checked")) { if($('#restart-conn').is(":checked")) {
restart = "1" restart = "1"
} }
if (target != t || restart == "1") {
target = t;
} else {
return false;
}
$('.other-elem').hide(); $('.other-elem').hide();
var button = $(this).html(); var button = $(this).html();
$.ajax({ $.ajax({