checker: Test SNAT configuration on HTTPonIP
This commit is contained in:
parent
532c36e486
commit
65dd0d51ca
2 changed files with 83 additions and 17 deletions
|
|
@ -132,6 +132,10 @@ func (tt *TunnelToken) GetStudentIP() string {
|
|||
}
|
||||
}
|
||||
|
||||
func (tt *TunnelToken) GetServerIP(suffix int) string {
|
||||
return fmt.Sprintf("%s%x", StudentIP(tt.IdStudent).String(), suffix)
|
||||
}
|
||||
|
||||
func (tt *TunnelToken) GenKeySign() []byte {
|
||||
stdprivkey := ed25519.NewKeyFromSeed(tt.token[:ed25519.SeedSize])
|
||||
|
||||
|
|
|
|||
Reference in a new issue