decula commited on
Commit ·
70c5d10
1
Parent(s): e4e31e4
modify frpc path
Browse files
app.py
CHANGED
|
@@ -142,9 +142,9 @@ import subprocess
|
|
| 142 |
|
| 143 |
def install_Frpc(port, frpconfigfile, use_frpc):
|
| 144 |
if use_frpc:
|
| 145 |
-
subprocess.run(['chmod', '+x', 'frpc'], check=True)
|
| 146 |
print(f'正在启动frp ,端口{port}')
|
| 147 |
-
subprocess.Popen(['frpc', '-c', frpconfigfile])
|
| 148 |
|
| 149 |
install_Frpc('7860',frpconfigfile,use_frpc)
|
| 150 |
|
|
|
|
| 142 |
|
| 143 |
def install_Frpc(port, frpconfigfile, use_frpc):
|
| 144 |
if use_frpc:
|
| 145 |
+
subprocess.run(['chmod', '+x', './frpc'], check=True)
|
| 146 |
print(f'正在启动frp ,端口{port}')
|
| 147 |
+
subprocess.Popen(['./frpc', '-c', frpconfigfile])
|
| 148 |
|
| 149 |
install_Frpc('7860',frpconfigfile,use_frpc)
|
| 150 |
|