48 lines
974 B
Go
48 lines
974 B
Go
|
package main
|
||
|
|
||
|
type AdlinTest int
|
||
|
|
||
|
const (
|
||
|
HTTPonIP AdlinTest = iota
|
||
|
HTTPonAssociatedDomain
|
||
|
HTTPSonAssociatedDomain
|
||
|
DNSDelegation
|
||
|
HTTPonDelegatedDomain
|
||
|
HTTPSonDelegatedDomain
|
||
|
Matrix
|
||
|
SNI
|
||
|
DNSSEC
|
||
|
PingResolver
|
||
|
DHCPonRH
|
||
|
DHCPonGuests
|
||
|
RHaccessNews
|
||
|
RHaccessNet
|
||
|
GuestNet
|
||
|
)
|
||
|
|
||
|
var CheckMap = map[int]map[AdlinTest]int{
|
||
|
2: map[AdlinTest]int{
|
||
|
HTTPonIP: 100,
|
||
|
HTTPonAssociatedDomain: 101,
|
||
|
HTTPSonAssociatedDomain: 102,
|
||
|
DNSDelegation: 103,
|
||
|
HTTPonDelegatedDomain: 104,
|
||
|
HTTPSonDelegatedDomain: 105,
|
||
|
Matrix: 106,
|
||
|
DNSSEC: 107,
|
||
|
},
|
||
|
3: map[AdlinTest]int{
|
||
|
PingResolver: 200,
|
||
|
HTTPonIP: 201,
|
||
|
DNSDelegation: 203,
|
||
|
HTTPonDelegatedDomain: 204,
|
||
|
HTTPSonDelegatedDomain: 205,
|
||
|
Matrix: 206,
|
||
|
DHCPonRH: 208,
|
||
|
DHCPonGuests: 211,
|
||
|
RHaccessNews: 209,
|
||
|
RHaccessNet: 210,
|
||
|
GuestNet: 212,
|
||
|
},
|
||
|
}
|