natfrp / launcher-windows

SakuraFrp 启动器 Windows 用户界面
https://doc.natfrp.com/launcher/usage.html#windows
GNU Affero General Public License v3.0
143 stars 27 forks source link

WOL 隧道创建后,如何通过命令行唤醒。 #15

Closed shinoi2 closed 2 years ago

shinoi2 commented 2 years ago

2021-10-25 09-59-35 的屏幕截图

natfrp 可以通过网页端点击开机,请问是否可以命令行方式进行开机 ? 例如: wakeonlan -i $IP_address $MAC_address

fakeboboliu commented 2 years ago

image

你好,你可以通过标题右边的按钮继续编辑标题,或内容下拉菜单中的编辑继续编辑此 issue 的内容

shinoi2 commented 2 years ago

Are there any updates?

natfrp-bot commented 2 years ago

您好, 您可以通过 cURL 请求 API 进行唤醒,该 Endpoint 支持 GET/POST(www-url-form-encoded) 方式提交参数:

curl "https://api.natfrp.com/v1/pc/poweron?token=<您的访问密钥>&pc=<计算机ID>"

# 例: curl "https://api.natfrp.com/v1/pc/poweron?token=abcde&pc=12345"