Compare commits
2 Commits
f6bbdcf096
...
ab909d12e7
Author | SHA1 | Date | |
---|---|---|---|
ab909d12e7 | |||
be98438120 |
@ -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: 5
|
GOARM: 7
|
||||||
|
|
||||||
- name: deploy binaries
|
- name: deploy binaries
|
||||||
image: appleboy/drone-scp:linux-arm
|
image: appleboy/drone-scp:linux-arm
|
||||||
|
@ -152,8 +152,11 @@ PersistentKeepalive = 5
|
|||||||
# MyNetwork=%s/%d
|
# MyNetwork=%s/%d
|
||||||
# GWIPv6=%s
|
# GWIPv6=%s
|
||||||
# MyLogin=%s
|
# MyLogin=%s
|
||||||
# KeySign=%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)))
|
||||||
`, 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()))))
|
if version > 2 {
|
||||||
|
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