Skip to content

有api能够新建需要访问认证的隧道吗? #278

Discussion options

You must be logged in to vote

稳定的 API 目前没有,你可以请求主站 CGI,但是不保证接口不会改

POST /cgi/tunnel/create HTTP/1.1
Host: www.natfrp.com
Content-Type: application/x-www-form-urlencoded

type=tcp&node=&local_ip=&local_port=&local_port=&extra=

带上主站 PHPSESSID,在 extra 那里放 auth_pass = 密码

一般来说 CGI 接口还是挺稳定的,反正创建隧道的结点自 4.0 以来都是这个格式,没变过

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by proItheus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants