Commit 11683258 authored by tywldx's avatar tywldx

f

parent a0c96876
...@@ -71,7 +71,9 @@ admin.get('/get_hosts', function (req, res) { ...@@ -71,7 +71,9 @@ admin.get('/get_hosts', function (req, res) {
admin.post('/add_new_proxy', function (req, res) { admin.post('/add_new_proxy', function (req, res) {
let request = req.body; let request = req.body;
var str = String(execSync(`cat ../ngrok/docker_env_name.sh`)).replace(/\n/,""); var str = String(execSync(`cat ../ngrok/docker_env_name.sh`)).replace(/\n/,"");
console.log(str)
var index = str.indexOf(request["namespace"]) var index = str.indexOf(request["namespace"])
console.log(index)
let newstr = "",sourcestr; let newstr = "",sourcestr;
if( index != -1 ){ if( index != -1 ){
//存在这个配置,判断是否是原有的IP //存在这个配置,判断是否是原有的IP
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment