Compare commits
No commits in common. "ab909d12e7b53ae4f6a7c0c629095674b21d6b65" and "f6bbdcf0963fdaf5ed4f5522023cf602c6bfac6b" have entirely different histories.
ab909d12e7
...
f6bbdcf096
@ -61,7 +61,7 @@ steps:
|
|||||||
- cd ./pkg/login-app/cmd && go build -buildvcs=false -v -ldflags="-s -w" -o ../../../dist/login-app . && cd -
|
- cd ./pkg/login-app/cmd && go build -buildvcs=false -v -ldflags="-s -w" -o ../../../dist/login-app . && cd -
|
||||||
environment:
|
environment:
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
GOARM: 7
|
GOARM: 5
|
||||||
|
|
||||||
- name: deploy binaries
|
- name: deploy binaries
|
||||||
image: appleboy/drone-scp:linux-arm
|
image: appleboy/drone-scp:linux-arm
|
||||||
|
@ -152,11 +152,8 @@ PersistentKeepalive = 5
|
|||||||
# MyNetwork=%s/%d
|
# MyNetwork=%s/%d
|
||||||
# GWIPv6=%s
|
# GWIPv6=%s
|
||||||
# MyLogin=%s
|
# MyLogin=%s
|
||||||
`, base64.StdEncoding.EncodeToString(tinfo.SrvPubKey), "82.64.31.248", tinfo.SrvPort, tinfo.CltIPv6, token.SuffixIP, 64, tinfo.CltIPv6, tinfo.CltRange, tinfo.SrvGW6, student.Login)))
|
# KeySign=%s
|
||||||
if version > 2 {
|
`, base64.StdEncoding.EncodeToString(tinfo.SrvPubKey), "82.64.31.248", tinfo.SrvPort, tinfo.CltIPv6, token.SuffixIP, 64, tinfo.CltIPv6, tinfo.CltRange, tinfo.SrvGW6, student.Login, base64.StdEncoding.EncodeToString(token.GenKeySign()))))
|
||||||
w.Write([]byte(fmt.Sprintf(`# KeySign=%s`, base64.StdEncoding.EncodeToString(token.GenKeySign()))))
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func updateWgTunnel(student *adlin.Student, ps httprouter.Params, body []byte) (interface{}, error) {
|
func updateWgTunnel(student *adlin.Student, ps httprouter.Params, body []byte) (interface{}, error) {
|
||||||
|
Reference in New Issue
Block a user