token-validator: add suffixip and version in db
This commit is contained in:
parent
daa0e00619
commit
28d5aa8fca
3 changed files with 167 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ func showWgTunnel(student adlin.Student, ps httprouter.Params, body []byte) (int
|
|||
|
||||
func genWgToken(student adlin.Student, ps httprouter.Params, body []byte) (interface{}, error) {
|
||||
// Generate a token to access related wg info
|
||||
return student.NewTunnelToken()
|
||||
return student.NewTunnelToken(0)
|
||||
}
|
||||
|
||||
type TunnelInfo struct {
|
||||
|
|
|
|||
Reference in a new issue