有api能够新建需要访问认证的隧道吗? #278
-
如题,想用脚本自动建立有访问认证的隧道(就是对面要输密码连接),但是看了官方和文档里那个第三方qt启动器的源码,没找到相关内容。想问下现在有这个api吗? |
Beta Was this translation helpful? Give feedback.
Answered by
natfrp-bot
Feb 6, 2023
Replies: 1 comment
-
稳定的 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= 带上主站 一般来说 CGI 接口还是挺稳定的,反正创建隧道的结点自 4.0 以来都是这个格式,没变过 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
proItheus
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
稳定的 API 目前没有,你可以请求主站 CGI,但是不保证接口不会改
带上主站
PHPSESSID
,在extra
那里放auth_pass = 密码
一般来说 CGI 接口还是挺稳定的,反正创建隧道的结点自 4.0 以来都是这个格式,没变过