Drcom implementation in Golang
Go to file
cyp0633 35ebf5e9b5 Use http connection test for convenient hijacking 2024-03-02 12:35:32 +08:00
.github/workflows Update workflow 2024-03-02 10:48:03 +08:00
doc Fix: cannot run in background 2023-02-27 22:21:48 +08:00
init Add systemd service 2023-07-25 22:28:43 +08:00
internal Use http connection test for convenient hijacking 2024-03-02 12:35:32 +08:00
.gitignore Update gitignore for my own need 2023-03-02 15:16:22 +08:00
LICENSE Initial commit 2022-12-20 20:06:02 +08:00
README.md Update README 2023-02-28 16:24:01 +08:00
go.mod Chore: update deps 2024-03-02 10:40:36 +08:00
go.sum Chore: update deps 2024-03-02 10:40:36 +08:00
main.go Add web login functionality 2024-03-01 23:22:20 +08:00

README.md

drcom-go

使用 Go 语言实现的 Drcom 客户端。

兴趣项目,本人实测可用,但不保证在其他环境下也可用。作者不对使用本项目带来的任何后果负责。

AGPLv3 协议授权(毕竟也算是用了其他人 AGPLv3 drcom 客户端的代码)。

下载

Releases 页面或 Actions 页面下载。

前者(可能)更稳定,后者则包含最新的特性。

使用方法

要使用本工具,需要 drcom.conf 配置文件和命令行参数,其中命令行参数部分见下。

drcom-go <command> [flags]

command: dhcppppoe,分别对应 DHCP 和 PPPoE 客户端

flags:

  • -h / --help 查看帮助
  • -c / --conf 指定配置文件路径,兼容 drcom-generic 的配置文件格式
  • -b / --bind-ip 指定绑定的 IP 地址,用于绑定网卡
  • -l / --log 指定日志文件路径,指定后将不输出到标准输出
  • -d / --daemon 后台运行
  • -e / --eternal 无限重连
  • -D / --debug 输出调试信息

drcom-go dhcp -c ./drcom.conf -e -d 是一种常见用法,它将使用 DHCP 模式,在后台运行,登录失败也将尝试无限重连,并使用当前目录下的 drcom.conf 配置文件。

配置文件编写方法请见 Wiki

灵感来自