Introduce overrideID option to allow multiple tunnels in parellel
This commit is contained in:
parent
9043bafe3d
commit
7187a7d187
6 changed files with 32 additions and 30 deletions
|
|
@ -28,7 +28,7 @@ func init() {
|
|||
}))
|
||||
}
|
||||
func check_GLUE_respond(student *adlin.Student, domain string, ip string) (err error) {
|
||||
if !strings.HasPrefix(ip, adlin.StudentIP(student.Id).String()) {
|
||||
if !strings.HasPrefix(ip, adlin.StudentIP(student.Id, 0).String()) {
|
||||
return fmt.Errorf("%q is not your IP range", ip)
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue