mirror of
https://github.com/fumiama/go-nd-portal.git
synced 2026-06-27 14:40:27 +08:00
feat: auto select server IP when not specified (#4)
This commit is contained in:
18
README.md
18
README.md
@@ -14,13 +14,23 @@ $ go install github.com/fumiama/go-nd-portal@latest
|
||||
|
||||
> 也可不带参数运行,会在启动时询问参数
|
||||
|
||||
```bash
|
||||
./go-nd-portal -n 20xxxxxxxxxxx -p password [-x]
|
||||
```
|
||||
./go-nd-portal -n 20xxxxxxxxxxx -p password [-t <TYPE>]
|
||||
```
|
||||
默认值:
|
||||
* `-ip`: 本机公网出口,可自定义
|
||||
* `-x`: 是否使用电信登陆(否)
|
||||
|
||||
* `-t`: 登录类型(`qsh-edu`),可指定为:
|
||||
* 清水河,教学办公区:
|
||||
* `qsh-edu`, 教育网
|
||||
* `qsh-dx`, 电信
|
||||
* 清水河,新建宿舍区:
|
||||
* `qshd-dx`, 电信
|
||||
* `qshd-cmcc`, 移动
|
||||
|
||||
* `-s`: 服务器地址(根据上述登录类型自动选择),可自定义
|
||||
|
||||
|
||||
## 效果
|
||||
|
||||
<img alt="screenshot" src="https://user-images.githubusercontent.com/41315874/204081015-7d696ae0-891b-43af-b862-b696186d9c3a.png">
|
||||
<img alt="screenshot" src="https://github.com/user-attachments/assets/1e4a7f0b-d9c5-4b4e-a5f7-a2f39f7ca3a3">
|
||||
|
||||
Reference in New Issue
Block a user