Update README.md

This commit is contained in:
starry
2025-12-19 02:03:01 +08:00
committed by GitHub
parent 679eee6b7e
commit 1dffe1c268

View File

@@ -1,8 +1,16 @@
- linux编译
#### L2TP自动安装脚本
```
curl -sSL https://cdn.jsdelivr.net/gh/sky22333/shell@main/l2tp/l2tp -o /usr/local/bin/l2tp && chmod +x /usr/local/bin/l2tp
```
```
l2tp
```
#### linux编译
```
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags="-s -w" -o l2tp
```
- windows编译
#### windows编译
```
$env:GOOS="linux"; $env:GOARCH="amd64"; $env:CGO_ENABLED="0"; go build -ldflags="-s -w" -o l2tp
```
```