Normalized function naming
This commit is contained in:
@@ -16,7 +16,7 @@ func init() {
|
||||
}
|
||||
}
|
||||
|
||||
func UpdateDNSEntry(domain string, hostname string, ip4 net.IP, ip6 net.IP) error {
|
||||
func DNSUpdateEntry(domain string, hostname string, ip4 net.IP, ip6 net.IP) error {
|
||||
if ip4 == nil && ip6 == nil {
|
||||
return fmt.Errorf("at least one of --ipv4 and --ipv6 have to be set")
|
||||
}
|
||||
|
@@ -8,7 +8,7 @@ import (
|
||||
"github.com/google/nftables"
|
||||
)
|
||||
|
||||
func UpdateNFTSets(tableName string, set4name string, ip4 net.IP, set6name string, ip6 net.IP) error {
|
||||
func NFTUpdateSets(tableName string, set4name string, ip4 net.IP, set6name string, ip6 net.IP) error {
|
||||
runtime.LockOSThread()
|
||||
defer runtime.UnlockOSThread()
|
||||
|
||||
|
Reference in New Issue
Block a user