Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
Signed-off-by: Jat <[email protected]>
  • Loading branch information
jat001 committed Oct 24, 2023
1 parent 01de517 commit 1fe8a14
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
24 changes: 17 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,33 @@

自动获取本机 IP 并更新 CDN 源站地址,同时支持 IPV4 和 IPV6。

## 已支持的厂商
## Supported Cloud Services

- Cloudflare
- 腾讯云 ECDN
- 阿里云 DCDN
- Alibaba Cloud ECDN
- Tencent Cloud DCDN

## 配置
## Config

参考[示例](/config.example.toml)
See [example](/config.example.toml)

## 运行
## Run

```shell
./ddns4cdn -c config.toml
```

## Build for mobile
## Build

### Desktop

```shell
go build -C src -o ../ddns4cdn[.exe]
```

Set `GOOS` and `GOARCH` to build for other platforms.

### Mobile

```shell
cd src
Expand Down
2 changes: 2 additions & 0 deletions src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import (

func main() {
config := flag.String("c", "config.toml", "config file path")
flag.Parse()

data, err := os.ReadFile(*config)
if err != nil {
fmt.Println(err)
Expand Down

0 comments on commit 1fe8a14

Please sign in to comment.