Coder Social home page Coder Social logo

7utism / sakura_ddns Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zerodream-cn/sakura_ddns

0.0 0.0 0.0 19 KB

Sakura Frp 公网版(DDNS 动态解析)客户端程序

Home Page: https://www.natfrp.org/

License: GNU General Public License v3.0

Go 45.18% Batchfile 54.82%

sakura_ddns's Introduction

Sakura_DDNS

Sakura Frp 公网版(DDNS 动态解析)客户端程序

官网:https://www.natfrp.org/

使用方法

打开命令行,输入 文件名 你的用户名 你的AccessToken

用户名就是 Sakura Frp 的用户名。

Access Token 可以在 Sakura Frp 后台 》账号安全 页面查看。

例如用我的账号登录

SakuraDDNS_windows_amd64.exe KasuganoSora abcdefghijklmnopqrstuvwxyz

Linux 下需要在文件名前面加个 ./,如果出现 Permission denied,请输入 chmod +x 文件名

Windows 一键运行脚本

将下面的内容修改后保存为一个 .cmd 或者 .bat 文件,和客户端放在一起就可以了。

@echo off
set ddns_user=你的账号
set ddns_token=你的AccessToken
set ddns_client=客户端文件名
:run
%ddns_client% %ddns_user% %ddns_token%
timeout /t 600
goto run

运行后会出现一个命令提示符窗口,将它最小化即可,它将会每隔 10 分钟更新一次 IP。

Linux 一键运行脚本

这里以 Linux 64 位作为例子,首先执行命令

wget https://cdn.tcotp.cn/assets/SakuraDDNS/SakuraDDNS_linux_amd64.tgz
tar xzvf SakuraDDNS_linux_amd64.tgz
touch run.sh
chmod +x run.sh
vi run.sh

复制下面的内容,右键粘贴并修改账号、token 等信息

#!/bin/sh
ddns_user=你的账号
ddns_token=你的AccessToken
ddns_client=客户端文件名
while :
do
	./$ddns_client $ddns_user $ddns_token
	sleep 600
done

输入后,按下 Esc,然后输入 :wq 保存并退出,然后输入以下命令运行

./run.sh

Linux 在后台运行的方法参考这篇文章:https://www.zerobbs.net/thread/6

sakura_ddns's People

Contributors

kasuganosoras avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.