mirror of
https://github.com/Ysurac/openmptcprouter-vps-admin.git
synced 2025-03-09 15:40:05 +00:00
Fix for shadowsocks post
This commit is contained in:
parent
70d194a053
commit
d10afe5e88
1 changed files with 1 additions and 1 deletions
|
@ -453,7 +453,7 @@ class ShadowsocksConfigparams(BaseModel):
|
||||||
ebpf: bool
|
ebpf: bool
|
||||||
key: str
|
key: str
|
||||||
|
|
||||||
@app.get('/shadowsocks')
|
@app.post('/shadowsocks')
|
||||||
def shadowsocks(*,params: ShadowsocksConfigparams,current_user: User = Depends(get_current_user)):
|
def shadowsocks(*,params: ShadowsocksConfigparams,current_user: User = Depends(get_current_user)):
|
||||||
with open('/etc/shadowsocks-libev/config.json') as f:
|
with open('/etc/shadowsocks-libev/config.json') as f:
|
||||||
content = f.read()
|
content = f.read()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue