mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-11 02:48:21 +00:00
Rename Address Group Constant
This commit is contained in:
parent
b09875fd85
commit
16a9fec479
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ const (
|
||||||
Host AddressType = iota
|
Host AddressType = iota
|
||||||
Range
|
Range
|
||||||
Network
|
Network
|
||||||
Group
|
AddressGroup
|
||||||
)
|
)
|
||||||
|
|
||||||
func (t AddressType) String() string {
|
func (t AddressType) String() string {
|
||||||
|
@ -33,7 +33,7 @@ func (t *AddressType) FromString(input string) AddressType {
|
||||||
"host": Host,
|
"host": Host,
|
||||||
"range": Range,
|
"range": Range,
|
||||||
"network": Network,
|
"network": Network,
|
||||||
"group": Group,
|
"group": AddressGroup,
|
||||||
}[input]
|
}[input]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue