{"repo":"Mmx233/BitSrunLoginGo","free":true,"listed":false,"github":"https://github.com/Mmx233/BitSrunLoginGo","clone":"git clone https://github.com/Mmx233/BitSrunLoginGo.git","description":"深澜校园网登录程序 Go 语言版，适用于Windows、Linux、路由器等。提供对 Docker、Go Module、OpenWrt 的支持","language":"Go","stars":544,"topics":["docker","golang","multiplatform","openwrt-package","srun","ddns"],"license":"AGPL-3.0","category":"deployment-docker-iac","readme_excerpt":"BitSrunLoginGo 深澜校园网登录脚本 Go 语言版。GO 语言可以直接交叉编译出 mips 架构可执行程序（路由器）（主流平台更不用说了），从而免除安装环境。 主要登录逻辑来自： https://github.com/coffeehat/BIT-srun-login-script Openwrt 可以参考 immortalwrt/packages/net/bitsrunlogin-go 添加构建配置文件。单独复制文件夹、添加源或直接使用 immortalwrt 编译固件，选择 application / luci-app-bitsrunlogin-go 由社区贡献的图文教程见 tutorials 分支 :gear:运行 编译结果为可执行文件，下载 release 或编译后直接运行即可。如果你不知道 windows amd64 v4 中的 v4 或 linux arm hardfloat 中的 hardfloat 意味着什么，选取没有这些后缀的有更高兼容性的默认版本即可 首次运行将自动生成配置文件，首次使用建议开启调试日志（ settings.log.debug level 设为 true 或使用 flag --debug ），可以通过添加启动参数 --config 指定配置文件路径，默认为当前目录的 Config.yaml 配置类型支持 json 、 yaml ，默认使用 yaml 其他 flags: Config.yaml 说明： 登录参数从原网页登陆时对 /srun portal 的请求抓取，抓取时请把浏览器控制台的 preserve log （保留日志）启用。 运营商类型在原网页会被自动附加在账号后，请把 @ 后面的部分填入 user type ，没有则留空（删掉默认的） :minidisc: 运行时间线 :bow and arrow: DDNS 将 ddns.enable 设为 true 后，将在登录成功时以及守护模式（Guardian）下启动首次检测到已在线时设置指定域名的解析地址（A 记录），用于校园网内网通信。此功能的优点在于可以无视 Nat，即你可以在局域网的任何位置完成 DDNS 更新而不需要占用路由器资源。这在无法更换路由器系统时格外有用 支持的 Provider 及其设置（将额外配置添加到配置文件 DDNS 配置内）： Provider 额外配置项 :----------: ----------------------------------------- cloudflare (Recommended) zone 区域 ID token API 令牌 aliyun access key id access key secret dnspod secret id secret key 如果多网卡模式下使用 ddns 存在问题，可以为个别网卡创建额外的配置文件单独进行登录。此外，校园网内网通信并不是安全的，校方往往会对其施加监管 :shower: 多拨 登录请求的网卡绑定在 Linux 下稳定生效，但在其它系统中可能无法成功绑定。如果要在 windows 等系统寻求稳定的多拨效果，可以考虑使用系统层面的绑定 请注意，少部分学校中在多拨中使用同一个账号时可能即使多拨成功，同一账号在同一个网关下的多个设备可能会共享带宽限制，这意味着多拨没有效果 你可以通过配置文件中的 settings.basic.interfaces 指定网卡，也可以在将该配置留空的情况下使用 --interface 指定网卡 :anchor: Do","default_branch":null,"files":null,"tree":[],"storefront":"/r/Mmx233","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Mmx233/BitSrunLoginGo/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}