mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-10 18:38:22 +00:00
update module import url
This commit is contained in:
parent
00b5286c42
commit
cb5554dcfe
7 changed files with 8 additions and 8 deletions
|
@ -5,7 +5,7 @@ import (
|
|||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.con/speatzle/nfsense/pkg/definitions"
|
||||
"nfsense.net/nfsense/pkg/definitions"
|
||||
)
|
||||
|
||||
func LoadConfiguration(file string) (*definitions.Config, error) {
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"github.con/speatzle/nfsense/pkg/nftables"
|
||||
"golang.org/x/exp/slog"
|
||||
"nfsense.net/nfsense/pkg/nftables"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
2
go.mod
2
go.mod
|
@ -1,4 +1,4 @@
|
|||
module github.con/speatzle/nfsense
|
||||
module nfsense.net/nfsense
|
||||
|
||||
go 1.19
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.con/speatzle/nfsense/pkg/definitions"
|
||||
"nfsense.net/nfsense/pkg/definitions"
|
||||
)
|
||||
|
||||
func GenerateNfTablesFile(conf definitions.Config) (string, error) {
|
||||
|
|
|
@ -3,8 +3,8 @@ package nftables
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.con/speatzle/nfsense/pkg/definitions"
|
||||
"github.con/speatzle/nfsense/pkg/util"
|
||||
"nfsense.net/nfsense/pkg/definitions"
|
||||
"nfsense.net/nfsense/pkg/util"
|
||||
)
|
||||
|
||||
func GenerateMatcher(services map[string]definitions.Service, addresses map[string]definitions.Address, match definitions.Match) (string, error) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package util
|
||||
|
||||
import "github.con/speatzle/nfsense/pkg/definitions"
|
||||
import "nfsense.net/nfsense/pkg/definitions"
|
||||
|
||||
// ResolveBaseAddresses Resolves all groups to their base Addresses
|
||||
func ResolveBaseAddresses(allAddresses map[string]definitions.Address, addressNames []string) []definitions.Address {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package util
|
||||
|
||||
import "github.con/speatzle/nfsense/pkg/definitions"
|
||||
import "nfsense.net/nfsense/pkg/definitions"
|
||||
|
||||
// ResolveBaseServices Resolves all groups to their base Services
|
||||
func ResolveBaseServices(allServices map[string]definitions.Service, serviceNames []string) []definitions.Service {
|
||||
|
|
Loading…
Add table
Reference in a new issue