<!DOCTYPE html>

<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="keywords" content="">
    <meta name="author" content="">
    <meta name="robots" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="Fillow : Fillow Saas Admin  Bootstrap 5 Template">
    <meta property="og:title" content="Fillow : Fillow Saas Admin  Bootstrap 5 Template">
    <meta property="og:description" content="Fillow : Fillow Saas Admin  Bootstrap 5 Template">
    <meta name="format-detection" content="telephone=no">

    <!-- PAGE TITLE HERE -->
    <title>Fxpool confuse config</title>

    <!-- FAVICONS ICON -->
    <link rel="stylesheet" href="static/css/toastr.min.css">
    <link rel="stylesheet" href="static/css/select2.min.css">
    <link href="static/css/nice-select.css" rel="stylesheet">
    <link href="static/css/style.css" rel="stylesheet">
    <link href="static/css/jquery.dataTables.min.css" rel="stylesheet">
    <link rel="stylesheet" href="static/css/nouislider.min.css">
</head>

<body>

    <!--*******************
        Preloader start
    ********************-->
    <div id="preloader">
        <div class="lds-ripple">
            <div></div>
            <div></div>
        </div>
    </div>
    <!--*******************
        Preloader end
    ********************-->


    <!--**********************************
        Main wrapper start
    ***********************************-->
    <div id="main-wrapper">

        <!--**********************************
            Nav header start
        ***********************************-->
        <div class="nav-header">
            <a href="index" class="brand-logo">
                <svg class="logo-abbr" width="55" height="55" viewbox="0 0 55 55" fill="none" xmlns="http://www.w3.org/2000/svg">
                    <path fill-rule="evenodd" clip-rule="evenodd"
                        d="M27.5 0C12.3122 0 0 12.3122 0 27.5C0 42.6878 12.3122 55 27.5 55C42.6878 55 55 42.6878 55 27.5C55 12.3122 42.6878 0 27.5 0ZM28.0092 46H19L19.0001 34.9784L19 27.5803V24.4779C19 14.3752 24.0922 10 35.3733 10V17.5571C29.8894 17.5571 28.0092 19.4663 28.0092 24.4779V27.5803H36V34.9784H28.0092V46Z"
                        fill="url(#paint0_linear)"></path>
                    <defs>
                    </defs>
                </svg>
                <div class="brand-title">
                    <h2 class="">Fxpool.</h2>
                    <span class="brand-sub-title">Saas Fxpool Dashboard</span>
                </div>
            </a>
            <div class="nav-control">
                <div class="hamburger">
                    <span class="line"></span><span class="line"></span><span class="line"></span>
                </div>
            </div>
        </div>
        <!--**********************************
            Nav header end
        ***********************************-->

        <!--**********************************
            Chat box start
        ***********************************-->

        <!--**********************************
            Chat box End
        ***********************************-->

        <!--**********************************
            Header start
        ***********************************-->
        <div class="header">
            <div class="header-content">
                <nav class="navbar navbar-expand">
                    <div class="collapse navbar-collapse justify-content-between">
                        <div class="header-left">
                            <div class="dashboard_bar">
                                代理矿池
                            </div>
                        </div>
                        <div class="card-tabs mt-3 mt-sm-0 mb-3 ">
                            <ul class="nav nav-tabs" role="tablist">
                                <li class="nav-item">
                                    <a class="nav-link active" data-bs-toggle="tab" id="theme_light" role="tab">明亮</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" data-bs-toggle="tab" id="theme_dark" role="tab">灰暗</a>
                                </li>
                            </ul>
                        </div>
                        <ul class="navbar-nav header-right">
                            <li class="nav-item dropdown notification_dropdown">
                                <div class="dropdown-menu dropdown-menu-end">
                                    <div id="DZ_W_Notification1" class="widget-media dlab-scroll p-3" style="height:380px;">
                                        <ul class="timeline">
                                            <li>
                                                <div class="timeline-panel">
                                                    <div class="media me-2">
                                                        <!-- <img alt="image" width="50" src="static/picture/1.jpg"> -->
                                                    </div>
                                                    <div class="media-body">
                                                        <h6 class="mb-1">Dr sultads Send you Photo</h6>
                                                        <small class="d-block">29 July 2020 - 02:26 PM</small>
                                                    </div>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="timeline-panel">
                                                    <div class="media me-2 media-info">
                                                        KG
                                                    </div>
                                                    <div class="media-body">
                                                        <h6 class="mb-1">Resport created successfully</h6>
                                                        <small class="d-block">29 July 2020 - 02:26 PM</small>
                                                    </div>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="timeline-panel">
                                                    <div class="media me-2 media-success">
                                                        <i class="fa fa-home"></i>
                                                    </div>
                                                    <div class="media-body">
                                                        <h6 class="mb-1">Reminder : Treatment Time!</h6>
                                                        <small class="d-block">29 July 2020 - 02:26 PM</small>
                                                    </div>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="timeline-panel">
                                                    <div class="media me-2">
                                                        <!-- <img alt="image" width="50" src="static/picture/1.jpg"> -->
                                                    </div>
                                                    <div class="media-body">
                                                        <h6 class="mb-1">Dr sultads Send you Photo</h6>
                                                        <small class="d-block">29 July 2020 - 02:26 PM</small>
                                                    </div>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="timeline-panel">
                                                    <div class="media me-2 media-danger">
                                                        KG
                                                    </div>
                                                    <div class="media-body">
                                                        <h6 class="mb-1">Resport created successfully</h6>
                                                        <small class="d-block">29 July 2020 - 02:26 PM</small>
                                                    </div>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="timeline-panel">
                                                    <div class="media me-2 media-primary">
                                                        <i class="fa fa-home"></i>
                                                    </div>
                                                    <div class="media-body">
                                                        <h6 class="mb-1">Reminder : Treatment Time!</h6>
                                                        <small class="d-block">29 July 2020 - 02:26 PM</small>
                                                    </div>
                                                </div>
                                            </li>
                                        </ul>
                                    </div>
                                    <a class="all-notification" href="javascript:void(0);">See all notifications <i class="ti-arrow-end"></i></a>
                                </div>
                            </li>
                            <li class="nav-item dropdown notification_dropdown">
                                <div class="dropdown-menu dropdown-menu-end">
                                    <div id="DZ_W_TimeLine02" class="widget-timeline dlab-scroll style-1 ps ps--active-y p-3 height370">
                                        <ul class="timeline">
                                            <li>
                                                <div class="timeline-badge primary"></div>
                                                <a class="timeline-panel text-muted" href="javascript:void(0);">
                                                    <span>10 minutes ago</span>
                                                    <h6 class="mb-0">Youtube, a video-sharing website, goes live <strong class="text-primary">$500</strong>.</h6>
                                                </a>
                                            </li>
                                            <li>
                                                <div class="timeline-badge info">
                                                </div>
                                                <a class="timeline-panel text-muted" href="javascript:void(0);">
                                                    <span>20 minutes ago</span>
                                                    <h6 class="mb-0">New order placed <strong class="text-info">#XF-2356.</strong></h6>
                                                    <p class="mb-0">Quisque a consequat ante Sit amet magna at volutapt...</p>
                                                </a>
                                            </li>
                                            <li>
                                                <div class="timeline-badge danger">
                                                </div>
                                                <a class="timeline-panel text-muted" href="javascript:void(0);">
                                                    <span>30 minutes ago</span>
                                                    <h6 class="mb-0">john just buy your product <strong class="text-warning">Sell $250</strong></h6>
                                                </a>
                                            </li>
                                            <li>
                                                <div class="timeline-badge success">
                                                </div>
                                                <a class="timeline-panel text-muted" href="javascript:void(0);">
                                                    <span>15 minutes ago</span>
                                                    <h6 class="mb-0">StumbleUpon is acquired by eBay. </h6>
                                                </a>
                                            </li>
                                            <li>
                                                <div class="timeline-badge warning">
                                                </div>
                                                <a class="timeline-panel text-muted" href="javascript:void(0);">
                                                    <span>20 minutes ago</span>
                                                    <h6 class="mb-0">Mashable, a news website and blog, goes live.</h6>
                                                </a>
                                            </li>
                                            <li>
                                                <div class="timeline-badge dark">
                                                </div>
                                                <a class="timeline-panel text-muted" href="javascript:void(0);">
                                                    <span>20 minutes ago</span>
                                                    <h6 class="mb-0">Mashable, a news website and blog, goes live.</h6>
                                                </a>
                                            </li>
                                        </ul>
                                    </div>
                                </div>
                            </li>
                            <li class="nav-item dropdown  header-profile">
								<a class="nav-link" id="setImage" href="javascript:void(0);" role="button" data-bs-toggle="dropdown">
									<img src="static/picture/currency-ETH.png" width="56" alt="">
								</a>
								<div class="dropdown-menu dropdown-menu-end">
									<a href="javascript:;" class="dropdown-item ai-icon" onclick="selectCoinTypeFunc(this)" type="ETH">
										<img src="static/picture/currency-ETH.png"  alt="">
										<span class="ms-2">ETH</span>
									</a>
									<a href="javascript:;" class="dropdown-item ai-icon" onclick="selectCoinTypeFunc(this)" type="ETC">
										<img src="static/picture/currency-ETC.png"  alt="">
										<span class="ms-2">ETC</span>
									</a>
									<a href="javascript:;" class="dropdown-item ai-icon" onclick="selectCoinTypeFunc(this)" type="BTC">
										<img src="static/picture/currency-BTC.png"  alt="">
										<span class="ms-2">BTC</span>
                                    </a>
                                    <a href="javascript:;" class="dropdown-item ai-icon" onclick="selectCoinTypeFunc(this)" type="LTC">
										<img src="static/picture/currency-LTC.png"  alt="">
										<span class="ms-2">LTC</span>
                                    </a>
                                    <a href="javascript:;" class="dropdown-item ai-icon" onclick="selectCoinTypeFunc(this)" type="RVN">
										<img src="static/picture/currency-RVN.png"  alt="">
										<span class="ms-2">RVN</span>
                                    </a>
                                    <a href="javascript:;" class="dropdown-item ai-icon" onclick="selectCoinTypeFunc(this)" type="BEAM">
										<img src="static/picture/currency-BEAM.png"  alt="">
										<span class="ms-2">BEAM</span>
                                    </a>
                                    <a href="javascript:;" class="dropdown-item ai-icon" onclick="selectCoinTypeFunc(this)" type="ERG">
										<img src="static/picture/currency-ERG.png"  alt="">
										<span class="ms-2">ERG</span>
                                    </a>
                                    <a href="javascript:;" class="dropdown-item ai-icon" onclick="selectCoinTypeFunc(this)" type="CFX">
										<img src="static/picture/currency-CFX.png"  alt="">
										<span class="ms-2">CFX</span>
                                    </a>
                                    <a href="javascript:;" class="dropdown-item ai-icon" onclick="selectCoinTypeFunc(this)" type="BTG">
										<img src="static/picture/currency-BTG.png"  alt="">
										<span class="ms-2">BTG</span>
                                    </a>
                                    <!-- <a href="javascript:;" class="dropdown-item ai-icon" onclick="selectCoinTypeFunc(this)" type="TON">
										<img src="static/picture/currency-TON.png"  alt="">
										<span class="ms-2">TON</span>
                                    </a> -->
								</div>
							</li>
                        </ul>
                    </div>
                </nav>
            </div>
        </div>

        <!--**********************************
            Header end ti-comment-alt
        ***********************************-->

        <!--**********************************
            Sidebar start
        ***********************************-->
        <div class="dlabnav">
            <div class="dlabnav-scroll">
                <ul class="metismenu" id="menu">
                    <li>
                        <a class=""  href="index" aria-expanded="false">
                            <i class="fas fa-home"></i>
                            <span class="nav-text">主页</span>
                        </a>
                    </li>
                    <li>
                        <a class="" href="proxyPool" aria-expanded="false">
                            <i class="fas fa-clone"></i>
                            <span class="nav-text">端口</span>
                        </a>
                    </li>
                    <li>
                        <a class="" href="userList" aria-expanded="false">
                            <i class="fas fa-table"></i>
                            <span class="nav-text">矿池</span>
                        </a>
                    </li>
                    <li>
                        <a  class=""  href="confuseSet"aria-expanded="false">
                            <i class="fas fa-info-circle"></i>
                            <span class="nav-text">混淆</span>
                        </a>
                    </li>
                    <li>
                        <a  class=""  href="log"aria-expanded="false">
                            <i class="fas fa-file-alt"></i>
                            <span class="nav-text">日志</span>
                        </a>
                    </li>
                    <li>
                        <a href="setting" class="" aria-expanded="false">
                            <i class="fas fa-user-check"></i>
                            <span class="nav-text">设置</span>
                        </a>
                    </li>
                </ul>
                <div class="side-bar-profile">
                </div>
                <div class="copyright">
                    <p><strong>Admin</strong> © fxpool.org 2022 All Rights Reserved</p>
                </div>
            </div>
        </div>
        <!--**********************************
            Sidebar end
        ***********************************-->

        <!--**********************************
            Content body start
        ***********************************-->
        <div class="content-body">
            <div class="container-fluid">
                <!-- row -->
                <div class="row">
                    <div class="col-xl-6">
                        <div class="card">
                            <div class="card-header">
                                <h4 class="card-title">混淆设置<a href="#" class="text-info" title="通过混淆设置会自动生产远程API URL&#10;混淆客户端将会自动获取连接参数&#10;连接参数是你代理矿池设置的参数"> ?</a></h4>
                            </div>
                            <div class="card-body">
                                <div class="form-validation">
                                    <form class="needs-validation" name="proxySetingBase" novalidate="">
                                        <div class="row">
                                            <div class="col-xl-12">
                                                <div class="mb-3 row">
                                                    <label class="col-lg-3 col-form-label" for="api_port">混淆API监听端口
                                                        <a href="#" class="text-info" title="混淆客户端通过网络API获取你配置的代&#10;理矿池连接信息，一旦你的混淆软件交付&#10;到客户手上这个端口地址就不能改变了否&#10;则会导致客户端获取配置失败.默认80端口">?</a>
                                                    </label>
                                                    <div class="col-lg-4">
                                                        <input type="text" class="form-control"  name="api_port" id="api_port" placeholder="默认80端口,范围0-65535" required="">
                                                        <div class="invalid-feedback">
                                                            Please enter a Currency.
                                                        </div>
                                                    </div>
                                                    <div class="col-lg-5">
                                                        <h3>状态:{{.ConfuseState}}</h3>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-xl-12">
                                                <div class="mb-3 row">
                                                    <label class="col-lg-3 col-form-label" for="api_ip">混淆IP或者域名
                                                        <a href="#" class="text-info" title="本机服务器的IP地址或者域名(域名需要解析到本机服务器)&#10;建议使用域名方便以后更改服务器">?</a>
                                                    </label>
                                                    <div class="col-lg-4">
                                                        <input type="text" class="form-control"  name="api_ip" id="api_ip" placeholder="本机IP或域名" required="">
                                                    </div>
                                                    <div class="col-lg-5">
                                                        <h3>本机外网IP<code>{{.ExternIP}}</code></h3>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                            </div>
                            <div class="modal-footer">
                                <button type="button" id="applyUpdateButton" class="btn btn-primary">更新连接参数</button>
                                <button type="button" id="applyConfigButton" class="btn btn-primary">制作混淆客户端</button>
                            </div>
                        </div>
                    </div>
                    <div class="col-xl-6" id="div_config_result">
                        <div class="card">
                            <div class="card-header">
                                <h4 class="card-title">配置结果</h4>
                            </div>
                            <div class="card-body">
                                <div class="form-validation">
                                    <form class="needs-validation" name="proxySetingBase" novalidate="">
                                        <div class="row">
                                            <div class="col-xl-12">
                                                <div class="mb-3 row">
                                                    <label class="col-lg-3 col-form-label" for="s_l_port">WINDOWS混淆
                                                    </label>
                                                    <div class="col-lg-9">
                                                        <h1>步骤：</h1>
                                                        <h4 id="H4RedxxWindowsDownloadUrl"></h4>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-xl-12">
                                                <div class="mb-3 row">
                                                    <label class="col-lg-3 col-form-label" for="s_l_port">linux混淆
                                                    </label>
                                                    <div class="col-lg-9">
                                                        <h1>步骤：</h1>
                                                        <h4 id="H4RedxxLinuxAutoInstallSSh"></h4>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-12">
                        <div class="card">
                            <div class="card-header">
                                <h4 class="card-title">混淆连接参数表</h4>
                            </div>
                            <div class="card-body">
                                <div class="table-responsive">
                                    <table class="table table-bordered verticle-middle table-responsive-sm">
                                        <thead>
                                            <tr>
                                                <th scope="col">连接地址</th>
                                                <th scope="col">备注</th>
                                            </tr>
                                        </thead>
                                        <tbody id="conTable">
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>


        <!--**********************************
            Content body end
        ***********************************-->

        <!--**********************************
            Footer start
        ***********************************-->
        <div class="footer">
            <div class="copyright">
                <p>Copyright © Designed &amp; Developed by <a href="http://www.fxpool.org" target="_blank">Fxpool</a> 2021</p>
            </div>
        </div>
        <!--**********************************
            Footer end
        ***********************************-->

        <!--**********************************
           Support ticket button start
        ***********************************-->

        <!--**********************************
           Support ticket button end
        ***********************************-->


    </div>
    <!--**********************************
        Main wrapper end
    ***********************************-->

    <!--**********************************
        Scripts
    ***********************************-->
    <!-- Required vendors -->
    <script src="static/js/global.min.js"></script>
    <script src="static/js/jquery.nice-select.min.js"></script>
    <script src="static/js/custom.min.js"></script>
    <script src="static/js/dlabnav-init.js"></script>
    <script src="static/js/jquery.dataTables.min.js"></script>
    <script src="static/js/datatables.init.js"></script>
    <script src="static/js/toastr-init.js"></script>
    <script src="static/js/toastr.min.js"></script>
    <!--demo是控制主题的js-->
    <script src="static/js/demo.js"></script>
    <script>
        // 获取币种
        GetCoinTypeFunc();
        function GetCoinTypeFunc(){
            var xhr = new XMLHttpRequest();
            xhr.onreadystatechange = function () {
                if (xhr.readyState == 4 && xhr.status == 200) {
                    var data = xhr.responseText;
                    data = JSON.parse(data);
                    if(data.status == "ok"){
                        document.getElementById("setImage").innerHTML ='<img src="static/picture/currency-'+data.data+'.png" width="56" alt="">';
                        //document.getElementById("getCoinTypeH4").innerText = data.data;
                    }
                }
            }
            xhr.open('GET','api/coinTypeGet',true);
            xhr.send();
        }
        // 设置币种
        function selectCoinTypeFunc(obj){
            var xhr = new XMLHttpRequest();
            xhr.onreadystatechange = function () {
                if (xhr.readyState == 4 && xhr.status == 200) {
                    var data = xhr.responseText;
                    data = JSON.parse(data);
                    if(data.status == "ok"){
                        location.reload();
                    }
                }
            }
            var newData = 'coinType='+obj.type;
            xhr.open('POST','api/coinTypeSet',true);
            xhr.setRequestHeader( "Content-Type" , "application/x-www-form-urlencoded");
            xhr.send(newData);
        }
    </script>
    <script>
        function copy() {
            toastrAll("已经复制到剪贴板","成功","success");
        }
        // 复制的方法
        function copyText(text, callback){ // text: 要复制的内容， callback: 回调
            var tag = document.createElement('input');
            tag.setAttribute('id', 'cp_hgz_input');
            tag.value = text;
            document.getElementsByTagName('body')[0].appendChild(tag);
            document.getElementById('cp_hgz_input').select();
            document.execCommand('copy');
            document.getElementById('cp_hgz_input').remove();
            if(callback) {callback(text)}
        }
        function ActionCopy(obj){
            copyText(obj.type,copy);
        }
         $("#applyConfigButton").on("click", function() {
            var thisIP =  document.getElementById("api_ip").value;
            var thisApiPort =  document.getElementById("api_port").value;
            var xhr = new XMLHttpRequest();
                xhr.onreadystatechange = function() {
                    if (xhr.readyState == 4 && xhr.status == 400) {
                        window.location.href="/login";
                        return;
                    }
                    if (xhr.readyState == 4 && xhr.status == 200) {
                        var data = xhr.responseText;
                        data = JSON.parse(data);
                        if(data.status == "err")
                        {
                            toastrAll(data.info,"错误","error");
                        }
                        else if (data.status == "ok")
                        {
                            toastrAll("生产成功,如果更改了混淆IP或者端口,必须重启生效","成功","success");
                            GetConfuseConfig();
                        }
                    }
                }
                var new_data = 'ip=' + thisIP + '&apiPort=' + thisApiPort;
                xhr.open('POST', 'api/confuseSetting', true)
                xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
                xhr.send(new_data);
        });
        $("#applyUpdateButton").on("click", function() {
            var xhr = new XMLHttpRequest();
            xhr.onreadystatechange = function() {
                if (xhr.readyState == 4 && xhr.status == 400) {
                    window.location.href="/login";
                    return;
                }
                if (xhr.readyState == 4 && xhr.status == 200) {
                    var data = xhr.responseText;
                    data = JSON.parse(data);
                    if(data.status == "err")
                    {
                        toastrAll(data.info,"错误","error");
                    }else{
                        console.log(data.data);
                        var cTableStr = "";
                        for (var p in data.data.port_and_address_aes) {
                            cTableStr +='<tr><td><span class="badge badge-info light">'+data.data.port_and_address_aes[p].target_address+'</span></td>'+
                            '<td><span class="badge badge-primary light">'+data.data.port_and_address_aes[p].note+'</span></td></tr>';
                        }
                        document.getElementById("conTable").innerHTML=cTableStr;
                        toastrAll("更新成功，更新指令已经发送给客户端","成功","success");
                    }
                }
            }
            xhr.open('POST', 'api/confuseUpdatePar', true)
            xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
            xhr.send();
        });
        function GetConfuseConfig(){
            var xhr2 = new XMLHttpRequest();
            xhr2.onreadystatechange = function() {
                if (xhr2.readyState == 4 && xhr2.status == 400) {
                        window.location.href="/login";
                        return;
                }
                if (xhr2.readyState == 4 && xhr2.status == 200) {
                    var data = xhr2.responseText;
                    data = JSON.parse(data);
                    if (data.status =="ok"){
                        document.getElementById("api_port").value = data.api_port;
                        document.getElementById("api_ip").value = data.api_ip;
                        document.getElementById("H4RedxxWindowsDownloadUrl").innerHTML = '直接<a href="'+data.redxx_windows_download_url+'" target="_blank"><code>下载</code></a>windows客户端,解压运行<a class="btn btn-primary shadow btn-xs sharp me-1" onclick="ActionCopy(this)" title="复制下载地址" type="'+data.redxx_windows_download_url+'"><i class="fas fa-copy"></i></a>';
                        document.getElementById("H4RedxxLinuxAutoInstallSSh").innerHTML = '将<code>'+data.redxx_linux_auto_install_ssh+'</code>一键安装脚本发送给客户';
                        document.getElementById("div_config_result").style.display = "";
                    }else{
                        document.getElementById("div_config_result").style.display = "none";
                    }
                }
            }
            xhr2.open('GET', 'api/GetConfuseUrl', true)
            xhr2.send();
        }
        function GetConFusePar(){
            var xhr = new XMLHttpRequest();
            xhr.onreadystatechange = function() {
                if (xhr.readyState == 4 && xhr.status == 400) {
                    window.location.href="/login";
                    return;
                }
                if (xhr.readyState == 4 && xhr.status == 200) {
                    var data = xhr.responseText;
                    data = JSON.parse(data);
                    if(data.status == "ok")
                    {
                        console.log(data.data);
                        var cTableStr = "";   
                        for (var p in data.data.port_and_address_aes) {
                            cTableStr +='<tr><td><span class="badge badge-info light">'+data.data.port_and_address_aes[p].target_address+'</span></td>'+
                                '<td><span class="badge badge-primary light">'+data.data.port_and_address_aes[p].note+'</span></td></tr>';
                        }
                        document.getElementById("conTable").innerHTML=cTableStr;
                    }
                }
            }
            xhr.open('GET', 'api/confuseGetPar', true)
            xhr.send();
        }
        GetConfuseConfig();
        GetConFusePar();
         
        //操作结果显示
        function toastrAll(this_infostr, this_titlemsg, type) {
            if (type == "info") {
                toastr.info(this_infostr, this_titlemsg, {
                    positionClass: "toast-top-center",
                    timeOut: 5e3,
                    closeButton: !0,
                    debug: !1,
                    newestOnTop: !0,
                    progressBar: !0,
                    preventDuplicates: !0,
                    onclick: null,
                    showDuration: "300",
                    hideDuration: "1000",
                    extendedTimeOut: "1000",
                    showEasing: "swing",
                    hideEasing: "linear",
                    showMethod: "fadeIn",
                    hideMethod: "fadeOut",
                    tapToDismiss: !1
                });
            } else if (type == "success") {
                toastr.success(this_infostr, this_titlemsg, {
                    positionClass: "toast-top-center",
                    timeOut: 5e3,
                    closeButton: !0,
                    debug: !1,
                    newestOnTop: !0,
                    progressBar: !0,
                    preventDuplicates: !0,
                    onclick: null,
                    showDuration: "300",
                    hideDuration: "1000",
                    extendedTimeOut: "1000",
                    showEasing: "swing",
                    hideEasing: "linear",
                    showMethod: "fadeIn",
                    hideMethod: "fadeOut",
                    tapToDismiss: !1
                });
            } else if (type == "error") {
                toastr.error(this_infostr, this_titlemsg, {
                    positionClass: "toast-top-center",
                    timeOut: 5e3,
                    closeButton: !0,
                    debug: !1,
                    newestOnTop: !0,
                    progressBar: !0,
                    preventDuplicates: !0,
                    onclick: null,
                    showDuration: "300",
                    hideDuration: "1000",
                    extendedTimeOut: "1000",
                    showEasing: "swing",
                    hideEasing: "linear",
                    showMethod: "fadeIn",
                    hideMethod: "fadeOut",
                    tapToDismiss: !1
                });
            }
        }
        
    </script>
</body>

</html>