checker: Test SNAT configuration on HTTPonIP

This commit is contained in:
nemunaire 2022-04-29 22:34:12 +02:00
commit 65dd0d51ca
2 changed files with 83 additions and 17 deletions

View file

@ -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])