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
|
|
@ -312,8 +312,8 @@ func AddAssociatedDomains(student *adlin.Student, aaaa net.IP) (err error) {
|
|||
}
|
||||
|
||||
if aaaa == nil {
|
||||
aaaa = net.ParseIP(adlin.StudentIP(student.Id).String() + "1")
|
||||
} else if !adlin.StudentNet(student.Id).Contains(aaaa) {
|
||||
aaaa = net.ParseIP(adlin.StudentIP(student.Id, 0).String() + "1")
|
||||
} else if !adlin.StudentNet(student.Id, 0).Contains(aaaa) {
|
||||
return errors.New("The associated IP has to be in your IP range.")
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue