drcom-go

command module
v0.0.0-...-35ebf5e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

README

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

灵感来自

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
dhcp
用于处理 DHCP 模式的登录与保活
用于处理 DHCP 模式的登录与保活
web
用于模拟网页登录
用于模拟网页登录

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL