mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-11 02:48:21 +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"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.con/speatzle/nfsense/pkg/definitions"
|
"nfsense.net/nfsense/pkg/definitions"
|
||||||
)
|
)
|
||||||
|
|
||||||
func LoadConfiguration(file string) (*definitions.Config, error) {
|
func LoadConfiguration(file string) (*definitions.Config, error) {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.con/speatzle/nfsense/pkg/nftables"
|
|
||||||
"golang.org/x/exp/slog"
|
"golang.org/x/exp/slog"
|
||||||
|
"nfsense.net/nfsense/pkg/nftables"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
2
go.mod
2
go.mod
|
@ -1,4 +1,4 @@
|
||||||
module github.con/speatzle/nfsense
|
module nfsense.net/nfsense
|
||||||
|
|
||||||
go 1.19
|
go 1.19
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.con/speatzle/nfsense/pkg/definitions"
|
"nfsense.net/nfsense/pkg/definitions"
|
||||||
)
|
)
|
||||||
|
|
||||||
func GenerateNfTablesFile(conf definitions.Config) (string, error) {
|
func GenerateNfTablesFile(conf definitions.Config) (string, error) {
|
||||||
|
|
|
@ -3,8 +3,8 @@ package nftables
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.con/speatzle/nfsense/pkg/definitions"
|
"nfsense.net/nfsense/pkg/definitions"
|
||||||
"github.con/speatzle/nfsense/pkg/util"
|
"nfsense.net/nfsense/pkg/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
func GenerateMatcher(services map[string]definitions.Service, addresses map[string]definitions.Address, match definitions.Match) (string, error) {
|
func GenerateMatcher(services map[string]definitions.Service, addresses map[string]definitions.Address, match definitions.Match) (string, error) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package util
|
package util
|
||||||
|
|
||||||
import "github.con/speatzle/nfsense/pkg/definitions"
|
import "nfsense.net/nfsense/pkg/definitions"
|
||||||
|
|
||||||
// ResolveBaseAddresses Resolves all groups to their base Addresses
|
// ResolveBaseAddresses Resolves all groups to their base Addresses
|
||||||
func ResolveBaseAddresses(allAddresses map[string]definitions.Address, addressNames []string) []definitions.Address {
|
func ResolveBaseAddresses(allAddresses map[string]definitions.Address, addressNames []string) []definitions.Address {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package util
|
package util
|
||||||
|
|
||||||
import "github.con/speatzle/nfsense/pkg/definitions"
|
import "nfsense.net/nfsense/pkg/definitions"
|
||||||
|
|
||||||
// ResolveBaseServices Resolves all groups to their base Services
|
// ResolveBaseServices Resolves all groups to their base Services
|
||||||
func ResolveBaseServices(allServices map[string]definitions.Service, serviceNames []string) []definitions.Service {
|
func ResolveBaseServices(allServices map[string]definitions.Service, serviceNames []string) []definitions.Service {
|
||||||
|
|
Loading…
Add table
Reference in a new issue