1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-vps-admin.git synced 2025-02-12 18:41:52 +00:00

Fix for shadowsocks post

This commit is contained in:
Ysurac 2019-11-13 18:21:02 +00:00
parent 70d194a053
commit d10afe5e88

View file

@ -453,7 +453,7 @@ class ShadowsocksConfigparams(BaseModel):
ebpf: bool
key: str
@app.get('/shadowsocks')
@app.post('/shadowsocks')
def shadowsocks(*,params: ShadowsocksConfigparams,current_user: User = Depends(get_current_user)):
with open('/etc/shadowsocks-libev/config.json') as f:
content = f.read()