mirror of
https://codeberg.org/cunicu/cunicu.git
synced 2025-10-26 18:21:22 +08:00
Rename module to cunicu.li/cunicu and update all links to new GitHub repo location
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
@@ -40,7 +40,7 @@ linters-settings:
|
|||||||
sections:
|
sections:
|
||||||
- standard
|
- standard
|
||||||
- default
|
- default
|
||||||
- prefix(github.com/stv0g/cunicu)
|
- prefix(cunicu.li/cunicu)
|
||||||
- blank
|
- blank
|
||||||
- dot
|
- dot
|
||||||
|
|
||||||
|
|||||||
@@ -68,12 +68,12 @@ builds:
|
|||||||
ldflags:
|
ldflags:
|
||||||
- -s
|
- -s
|
||||||
- -w
|
- -w
|
||||||
- -X github.com/stv0g/cunicu/pkg/buildinfo.Version=v{{.Version}}
|
- -X cunicu.li/cunicu/pkg/buildinfo.Version=v{{.Version}}
|
||||||
- -X github.com/stv0g/cunicu/pkg/buildinfo.Commit={{.Commit}}
|
- -X cunicu.li/cunicu/pkg/buildinfo.Commit={{.Commit}}
|
||||||
- -X github.com/stv0g/cunicu/pkg/buildinfo.DateStr={{.Date}}
|
- -X cunicu.li/cunicu/pkg/buildinfo.DateStr={{.Date}}
|
||||||
- -X github.com/stv0g/cunicu/pkg/buildinfo.Tag={{.Tag}}
|
- -X cunicu.li/cunicu/pkg/buildinfo.Tag={{.Tag}}
|
||||||
- -X github.com/stv0g/cunicu/pkg/buildinfo.Branch={{.Branch}}
|
- -X cunicu.li/cunicu/pkg/buildinfo.Branch={{.Branch}}
|
||||||
- -X github.com/stv0g/cunicu/pkg/buildinfo.BuiltBy=goreleaser
|
- -X cunicu.li/cunicu/pkg/buildinfo.BuiltBy=goreleaser
|
||||||
|
|
||||||
archives:
|
archives:
|
||||||
- id: cunicu
|
- id: cunicu
|
||||||
@@ -101,8 +101,8 @@ archives:
|
|||||||
rlcp: true
|
rlcp: true
|
||||||
|
|
||||||
nfpms:
|
nfpms:
|
||||||
- vendor: stv0g
|
- vendor: cunicu
|
||||||
homepage: https://github.com/stv0g/cunicu/
|
homepage: https://cunicu.li/
|
||||||
maintainer: Steffen Vogel <post@steffenvogel.de>
|
maintainer: Steffen Vogel <post@steffenvogel.de>
|
||||||
license: Apache 2.0
|
license: Apache 2.0
|
||||||
|
|
||||||
@@ -159,16 +159,16 @@ dockers:
|
|||||||
goos: linux
|
goos: linux
|
||||||
goarch: amd64
|
goarch: amd64
|
||||||
image_templates:
|
image_templates:
|
||||||
- "ghcr.io/stv0g/{{ .ProjectName }}:latest-amd64"
|
- "ghcr.io/cunicu/{{ .ProjectName }}:latest-amd64"
|
||||||
- "ghcr.io/stv0g/{{ .ProjectName }}:v{{ .Major }}-amd64"
|
- "ghcr.io/cunicu/{{ .ProjectName }}:v{{ .Major }}-amd64"
|
||||||
- "ghcr.io/stv0g/{{ .ProjectName }}:v{{ .Major }}.{{ .Minor }}-amd64"
|
- "ghcr.io/cunicu/{{ .ProjectName }}:v{{ .Major }}.{{ .Minor }}-amd64"
|
||||||
- "ghcr.io/stv0g/{{ .ProjectName }}:v{{ .Major }}.{{ .Minor }}.{{ .Patch }}-amd64"
|
- "ghcr.io/cunicu/{{ .ProjectName }}:v{{ .Major }}.{{ .Minor }}.{{ .Patch }}-amd64"
|
||||||
build_flag_templates:
|
build_flag_templates:
|
||||||
- --platform=linux/amd64
|
- --platform=linux/amd64
|
||||||
- --label=org.opencontainers.image.title={{ .ProjectName }}
|
- --label=org.opencontainers.image.title={{ .ProjectName }}
|
||||||
- --label=org.opencontainers.image.description={{ .ProjectName }}
|
- --label=org.opencontainers.image.description={{ .ProjectName }}
|
||||||
- --label=org.opencontainers.image.url=https://github.com/stv0g/{{ .ProjectName }}
|
- --label=org.opencontainers.image.url=https://github.com/cunicu/{{ .ProjectName }}
|
||||||
- --label=org.opencontainers.image.source=https://github.com/stv0g/{{ .ProjectName }}
|
- --label=org.opencontainers.image.source=https://github.com/cunicu/{{ .ProjectName }}
|
||||||
- --label=org.opencontainers.image.version={{ .Version }}
|
- --label=org.opencontainers.image.version={{ .Version }}
|
||||||
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
|
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
|
||||||
- --label=org.opencontainers.image.revision={{ .FullCommit }}
|
- --label=org.opencontainers.image.revision={{ .FullCommit }}
|
||||||
@@ -179,16 +179,16 @@ dockers:
|
|||||||
goos: linux
|
goos: linux
|
||||||
goarch: arm64
|
goarch: arm64
|
||||||
image_templates:
|
image_templates:
|
||||||
- "ghcr.io/stv0g/{{ .ProjectName }}:latest-arm64v8"
|
- "ghcr.io/cunicu/{{ .ProjectName }}:latest-arm64v8"
|
||||||
- "ghcr.io/stv0g/{{ .ProjectName }}:v{{ .Major }}-arm64v8"
|
- "ghcr.io/cunicu/{{ .ProjectName }}:v{{ .Major }}-arm64v8"
|
||||||
- "ghcr.io/stv0g/{{ .ProjectName }}:v{{ .Major }}.{{ .Minor }}-arm64v8"
|
- "ghcr.io/cunicu/{{ .ProjectName }}:v{{ .Major }}.{{ .Minor }}-arm64v8"
|
||||||
- "ghcr.io/stv0g/{{ .ProjectName }}:v{{ .Major }}.{{ .Minor }}.{{ .Patch }}-arm64v8"
|
- "ghcr.io/cunicu/{{ .ProjectName }}:v{{ .Major }}.{{ .Minor }}.{{ .Patch }}-arm64v8"
|
||||||
build_flag_templates:
|
build_flag_templates:
|
||||||
- --platform=linux/arm64/v8
|
- --platform=linux/arm64/v8
|
||||||
- --label=org.opencontainers.image.title={{ .ProjectName }}
|
- --label=org.opencontainers.image.title={{ .ProjectName }}
|
||||||
- --label=org.opencontainers.image.description={{ .ProjectName }}
|
- --label=org.opencontainers.image.description={{ .ProjectName }}
|
||||||
- --label=org.opencontainers.image.url=https://github.com/stv0g/{{ .ProjectName }}
|
- --label=org.opencontainers.image.url=https://github.com/cunicu/{{ .ProjectName }}
|
||||||
- --label=org.opencontainers.image.source=https://github.com/stv0g/{{ .ProjectName }}
|
- --label=org.opencontainers.image.source=https://github.com/cunicu/{{ .ProjectName }}
|
||||||
- --label=org.opencontainers.image.version={{ .Version }}
|
- --label=org.opencontainers.image.version={{ .Version }}
|
||||||
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
|
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
|
||||||
- --label=org.opencontainers.image.revision={{ .FullCommit }}
|
- --label=org.opencontainers.image.revision={{ .FullCommit }}
|
||||||
@@ -200,32 +200,32 @@ dockers:
|
|||||||
goarch: arm
|
goarch: arm
|
||||||
goarm: "7"
|
goarm: "7"
|
||||||
image_templates:
|
image_templates:
|
||||||
- "ghcr.io/stv0g/{{ .ProjectName }}:latest-armv7"
|
- "ghcr.io/cunicu/{{ .ProjectName }}:latest-armv7"
|
||||||
- "ghcr.io/stv0g/{{ .ProjectName }}:v{{ .Major }}-armv7"
|
- "ghcr.io/cunicu/{{ .ProjectName }}:v{{ .Major }}-armv7"
|
||||||
- "ghcr.io/stv0g/{{ .ProjectName }}:v{{ .Major }}.{{ .Minor }}-armv7"
|
- "ghcr.io/cunicu/{{ .ProjectName }}:v{{ .Major }}.{{ .Minor }}-armv7"
|
||||||
- "ghcr.io/stv0g/{{ .ProjectName }}:v{{ .Major }}.{{ .Minor }}.{{ .Patch }}-armv7"
|
- "ghcr.io/cunicu/{{ .ProjectName }}:v{{ .Major }}.{{ .Minor }}.{{ .Patch }}-armv7"
|
||||||
build_flag_templates:
|
build_flag_templates:
|
||||||
- --platform=linux/arm/v7
|
- --platform=linux/arm/v7
|
||||||
- --label=org.opencontainers.image.title={{ .ProjectName }}
|
- --label=org.opencontainers.image.title={{ .ProjectName }}
|
||||||
- --label=org.opencontainers.image.description={{ .ProjectName }}
|
- --label=org.opencontainers.image.description={{ .ProjectName }}
|
||||||
- --label=org.opencontainers.image.url=https://github.com/stv0g/{{ .ProjectName }}
|
- --label=org.opencontainers.image.url=https://github.com/cunicu/{{ .ProjectName }}
|
||||||
- --label=org.opencontainers.image.source=https://github.com/stv0g/{{ .ProjectName }}
|
- --label=org.opencontainers.image.source=https://github.com/cunicu/{{ .ProjectName }}
|
||||||
- --label=org.opencontainers.image.version={{ .Version }}
|
- --label=org.opencontainers.image.version={{ .Version }}
|
||||||
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
|
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
|
||||||
- --label=org.opencontainers.image.revision={{ .FullCommit }}
|
- --label=org.opencontainers.image.revision={{ .FullCommit }}
|
||||||
- --label=org.opencontainers.image.licenses=Apache-2.0
|
- --label=org.opencontainers.image.licenses=Apache-2.0
|
||||||
|
|
||||||
docker_manifests:
|
docker_manifests:
|
||||||
- name_template: "ghcr.io/stv0g/{{ .ProjectName }}:v{{ .Version }}"
|
- name_template: "ghcr.io/cunicu/{{ .ProjectName }}:v{{ .Version }}"
|
||||||
image_templates:
|
image_templates:
|
||||||
- "ghcr.io/stv0g/{{ .ProjectName }}:v{{ .Version }}-amd64"
|
- "ghcr.io/cunicu/{{ .ProjectName }}:v{{ .Version }}-amd64"
|
||||||
- "ghcr.io/stv0g/{{ .ProjectName }}:v{{ .Version }}-armv7"
|
- "ghcr.io/cunicu/{{ .ProjectName }}:v{{ .Version }}-armv7"
|
||||||
- "ghcr.io/stv0g/{{ .ProjectName }}:v{{ .Version }}-arm64v8"
|
- "ghcr.io/cunicu/{{ .ProjectName }}:v{{ .Version }}-arm64v8"
|
||||||
- name_template: "ghcr.io/stv0g/{{ .ProjectName }}:latest"
|
- name_template: "ghcr.io/cunicu/{{ .ProjectName }}:latest"
|
||||||
image_templates:
|
image_templates:
|
||||||
- "ghcr.io/stv0g/{{ .ProjectName }}:v{{ .Version }}-amd64"
|
- "ghcr.io/cunicu/{{ .ProjectName }}:v{{ .Version }}-amd64"
|
||||||
- "ghcr.io/stv0g/{{ .ProjectName }}:v{{ .Version }}-armv7"
|
- "ghcr.io/cunicu/{{ .ProjectName }}:v{{ .Version }}-armv7"
|
||||||
- "ghcr.io/stv0g/{{ .ProjectName }}:v{{ .Version }}-arm64v8"
|
- "ghcr.io/cunicu/{{ .ProjectName }}:v{{ .Version }}-arm64v8"
|
||||||
|
|
||||||
snapshot:
|
snapshot:
|
||||||
name_template: "{{ incpatch .Version }}-next"
|
name_template: "{{ incpatch .Version }}-next"
|
||||||
@@ -250,7 +250,7 @@ brews:
|
|||||||
- cunicu
|
- cunicu
|
||||||
|
|
||||||
tap:
|
tap:
|
||||||
owner: stv0g
|
owner: cunicu
|
||||||
name: homebrew-cunicu
|
name: homebrew-cunicu
|
||||||
token: "{{ .Env.TAP_GITHUB_TOKEN }}"
|
token: "{{ .Env.TAP_GITHUB_TOKEN }}"
|
||||||
|
|
||||||
@@ -324,7 +324,7 @@ changelog:
|
|||||||
|
|
||||||
release:
|
release:
|
||||||
github:
|
github:
|
||||||
owner: stv0g
|
owner: cunicu
|
||||||
name: cunicu
|
name: cunicu
|
||||||
|
|
||||||
draft: true
|
draft: true
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
"extends": [
|
"extends": [
|
||||||
"github>stv0g/renovate-config"
|
"github>cunicu/renovate-config"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
12
Makefile
12
Makefile
@@ -5,12 +5,12 @@ PKG = $(shell grep module go.mod | cut -f2 -d" ")
|
|||||||
|
|
||||||
export CGO_ENABLED = 0
|
export CGO_ENABLED = 0
|
||||||
|
|
||||||
LDFLAGS = -X github.com/stv0g/cunicu/pkg/buildinfo.Version=$(shell git describe --tags --dirty || echo unknown) \
|
LDFLAGS = -X cunicu.li/cunicu/pkg/buildinfo.Version=$(shell git describe --tags --dirty || echo unknown) \
|
||||||
-X github.com/stv0g/cunicu/pkg/buildinfo.Tag=$(shell git describe --tags) \
|
-X cunicu.li/cunicu/pkg/buildinfo.Tag=$(shell git describe --tags) \
|
||||||
-X github.com/stv0g/cunicu/pkg/buildinfo.Commit=$(shell git rev-parse HEAD) \
|
-X cunicu.li/cunicu/pkg/buildinfo.Commit=$(shell git rev-parse HEAD) \
|
||||||
-X github.com/stv0g/cunicu/pkg/buildinfo.Branch=$(shell git rev-parse --abbrev-ref HEAD) \
|
-X cunicu.li/cunicu/pkg/buildinfo.Branch=$(shell git rev-parse --abbrev-ref HEAD) \
|
||||||
-X github.com/stv0g/cunicu/pkg/buildinfo.DateStr=$(shell date -Iseconds) \
|
-X cunicu.li/cunicu/pkg/buildinfo.DateStr=$(shell date -Iseconds) \
|
||||||
-X github.com/stv0g/cunicu/pkg/buildinfo.BuiltBy=makefile \
|
-X cunicu.li/cunicu/pkg/buildinfo.BuiltBy=makefile \
|
||||||
|
|
||||||
PKGS ?= ./cmd/... ./pkg/... ./test
|
PKGS ?= ./cmd/... ./pkg/... ./test
|
||||||
ifeq ($(GOOS),linux)
|
ifeq ($(GOOS),linux)
|
||||||
|
|||||||
14
README.md
14
README.md
@@ -6,12 +6,12 @@ SPDX-License-Identifier: Apache-2.0
|
|||||||
<div align="center" >
|
<div align="center" >
|
||||||
<img style="width: 40%; margin: 4em 0" src="website/static/img/cunicu_logo.svg" alt="cunīcu logo" />
|
<img style="width: 40%; margin: 4em 0" src="website/static/img/cunicu_logo.svg" alt="cunīcu logo" />
|
||||||
|
|
||||||
[](https://github.com/stv0g/cunicu/actions)
|
[](https://github.com/cunicu/cunicu/actions)
|
||||||
[](https://goreportcard.com/report/github.com/stv0g/cunicu)
|
[](https://goreportcard.com/report/github.com/cunicu/cunicu)
|
||||||
[](https://app.codecov.io/gh/stv0g/cunicu)
|
[](https://app.codecov.io/gh/cunicu/cunicu)
|
||||||
[](https://github.com/stv0g/cunicu/blob/master/LICENSE)
|
[](https://github.com/cunicu/cunicu/blob/master/LICENSE)
|
||||||

|

|
||||||
[](https://pkg.go.dev/github.com/stv0g/cunicu)
|
[](https://pkg.go.dev/github.com/cunicu/cunicu)
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
## 🚧 cunīcu is currently still in an Alpha state and not usable yet
|
## 🚧 cunīcu is currently still in an Alpha state and not usable yet
|
||||||
@@ -56,6 +56,6 @@ _WireGuard_ and the _WireGuard_ logo are [registered trademarks](https://www.wir
|
|||||||
|
|
||||||
[pion-ice]: https://github.com/pion/ice
|
[pion-ice]: https://github.com/pion/ice
|
||||||
|
|
||||||
[cunicu]: https://github.com/stv0g/cunicu
|
[cunicu]: https://github.com/cunicu/cunicu
|
||||||
|
|
||||||
[erigrid]: https://erigrid2.eu
|
[erigrid]: https://erigrid2.eu
|
||||||
|
|||||||
@@ -12,9 +12,9 @@ import (
|
|||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/config"
|
"cunicu.li/cunicu/pkg/config"
|
||||||
"github.com/stv0g/cunicu/pkg/crypto"
|
"cunicu.li/cunicu/pkg/crypto"
|
||||||
"github.com/stv0g/cunicu/pkg/log"
|
"cunicu.li/cunicu/pkg/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
type addressesOptions struct {
|
type addressesOptions struct {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/stv0g/cunicu/pkg/tty"
|
"cunicu.li/cunicu/pkg/tty"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Banner(color bool) string {
|
func Banner(color bool) string {
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import (
|
|||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/config"
|
"cunicu.li/cunicu/pkg/config"
|
||||||
"github.com/stv0g/cunicu/pkg/rpc"
|
"cunicu.li/cunicu/pkg/rpc"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
@@ -6,15 +6,15 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
// Daemon features
|
// Daemon features
|
||||||
_ "github.com/stv0g/cunicu/pkg/daemon/feature/autocfg"
|
_ "cunicu.li/cunicu/pkg/daemon/feature/autocfg"
|
||||||
_ "github.com/stv0g/cunicu/pkg/daemon/feature/cfgsync"
|
_ "cunicu.li/cunicu/pkg/daemon/feature/cfgsync"
|
||||||
_ "github.com/stv0g/cunicu/pkg/daemon/feature/epdisc"
|
_ "cunicu.li/cunicu/pkg/daemon/feature/epdisc"
|
||||||
_ "github.com/stv0g/cunicu/pkg/daemon/feature/hooks"
|
_ "cunicu.li/cunicu/pkg/daemon/feature/hooks"
|
||||||
_ "github.com/stv0g/cunicu/pkg/daemon/feature/hsync"
|
_ "cunicu.li/cunicu/pkg/daemon/feature/hsync"
|
||||||
_ "github.com/stv0g/cunicu/pkg/daemon/feature/pdisc"
|
_ "cunicu.li/cunicu/pkg/daemon/feature/pdisc"
|
||||||
_ "github.com/stv0g/cunicu/pkg/daemon/feature/rtsync"
|
_ "cunicu.li/cunicu/pkg/daemon/feature/rtsync"
|
||||||
|
|
||||||
// Signaling backends
|
// Signaling backends
|
||||||
_ "github.com/stv0g/cunicu/pkg/signaling/grpc"
|
_ "cunicu.li/cunicu/pkg/signaling/grpc"
|
||||||
_ "github.com/stv0g/cunicu/pkg/signaling/inprocess"
|
_ "cunicu.li/cunicu/pkg/signaling/inprocess"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -9,9 +9,9 @@ import (
|
|||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/crypto"
|
"cunicu.li/cunicu/pkg/crypto"
|
||||||
rpcproto "github.com/stv0g/cunicu/pkg/proto/rpc"
|
rpcproto "cunicu.li/cunicu/pkg/proto/rpc"
|
||||||
"github.com/stv0g/cunicu/pkg/rpc"
|
"cunicu.li/cunicu/pkg/rpc"
|
||||||
)
|
)
|
||||||
|
|
||||||
//nolint:gochecknoglobals
|
//nolint:gochecknoglobals
|
||||||
|
|||||||
@@ -14,9 +14,9 @@ import (
|
|||||||
"go.uber.org/zap/zapcore"
|
"go.uber.org/zap/zapcore"
|
||||||
statusx "google.golang.org/grpc/status"
|
statusx "google.golang.org/grpc/status"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/proto"
|
"cunicu.li/cunicu/pkg/proto"
|
||||||
rpcproto "github.com/stv0g/cunicu/pkg/proto/rpc"
|
rpcproto "cunicu.li/cunicu/pkg/proto/rpc"
|
||||||
"github.com/stv0g/cunicu/pkg/types/maps"
|
"cunicu.li/cunicu/pkg/types/maps"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() { //nolint:gochecknoinits
|
func init() { //nolint:gochecknoinits
|
||||||
|
|||||||
@@ -12,10 +12,10 @@ import (
|
|||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"go.uber.org/zap/zapio"
|
"go.uber.org/zap/zapio"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/config"
|
"cunicu.li/cunicu/pkg/config"
|
||||||
"github.com/stv0g/cunicu/pkg/daemon"
|
"cunicu.li/cunicu/pkg/daemon"
|
||||||
"github.com/stv0g/cunicu/pkg/rpc"
|
"cunicu.li/cunicu/pkg/rpc"
|
||||||
"github.com/stv0g/cunicu/pkg/tty"
|
"cunicu.li/cunicu/pkg/tty"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() { //nolint:gochecknoinits
|
func init() { //nolint:gochecknoinits
|
||||||
@@ -78,7 +78,7 @@ func daemonRun(_ *cobra.Command, args []string, cfg *config.Config) {
|
|||||||
Please set the env var CUNICU_EXPERIMENTAL=1 to bypass this warning.
|
Please set the env var CUNICU_EXPERIMENTAL=1 to bypass this warning.
|
||||||
|
|
||||||
Please feel free to join the development
|
Please feel free to join the development
|
||||||
- at Github: https://github.com/stv0g/cunicu
|
- at Github: https://github.com/cunicu/cunicu
|
||||||
- via Slack: #cunicu in the Gophers workspace`)
|
- via Slack: #cunicu in the Gophers workspace`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ import (
|
|||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"gopkg.in/yaml.v3"
|
"gopkg.in/yaml.v3"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/buildinfo"
|
"cunicu.li/cunicu/pkg/buildinfo"
|
||||||
)
|
)
|
||||||
|
|
||||||
type docsOptions struct {
|
type docsOptions struct {
|
||||||
@@ -129,7 +129,7 @@ func docsManpage(_ *cobra.Command, _ []string, opts *docsOptions) error {
|
|||||||
|
|
||||||
header := &doc.GenManHeader{
|
header := &doc.GenManHeader{
|
||||||
Title: "cunīcu",
|
Title: "cunīcu",
|
||||||
Source: "https://github.com/stv0g/cunicu",
|
Source: "https://github.com/cunicu/cunicu",
|
||||||
Date: buildinfo.Date,
|
Date: buildinfo.Date,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -13,10 +13,10 @@ import (
|
|||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
|
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/crypto"
|
"cunicu.li/cunicu/pkg/crypto"
|
||||||
rpcproto "github.com/stv0g/cunicu/pkg/proto/rpc"
|
rpcproto "cunicu.li/cunicu/pkg/proto/rpc"
|
||||||
"github.com/stv0g/cunicu/pkg/tty"
|
"cunicu.li/cunicu/pkg/tty"
|
||||||
"github.com/stv0g/cunicu/pkg/wg"
|
"cunicu.li/cunicu/pkg/wg"
|
||||||
)
|
)
|
||||||
|
|
||||||
type inviteOptions struct {
|
type inviteOptions struct {
|
||||||
|
|||||||
@@ -8,10 +8,10 @@ import (
|
|||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"google.golang.org/protobuf/encoding/protojson"
|
"google.golang.org/protobuf/encoding/protojson"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/config"
|
"cunicu.li/cunicu/pkg/config"
|
||||||
"github.com/stv0g/cunicu/pkg/log"
|
"cunicu.li/cunicu/pkg/log"
|
||||||
osx "github.com/stv0g/cunicu/pkg/os"
|
osx "cunicu.li/cunicu/pkg/os"
|
||||||
rpcproto "github.com/stv0g/cunicu/pkg/proto/rpc"
|
rpcproto "cunicu.li/cunicu/pkg/proto/rpc"
|
||||||
)
|
)
|
||||||
|
|
||||||
type monitorOptions struct {
|
type monitorOptions struct {
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ import (
|
|||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
"google.golang.org/grpc/credentials/insecure"
|
"google.golang.org/grpc/credentials/insecure"
|
||||||
|
|
||||||
osx "github.com/stv0g/cunicu/pkg/os"
|
osx "cunicu.li/cunicu/pkg/os"
|
||||||
grpcx "github.com/stv0g/cunicu/pkg/signaling/grpc"
|
grpcx "cunicu.li/cunicu/pkg/signaling/grpc"
|
||||||
)
|
)
|
||||||
|
|
||||||
type relayOptions struct {
|
type relayOptions struct {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/proto/rpc"
|
"cunicu.li/cunicu/pkg/proto/rpc"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() { //nolint:gochecknoinits
|
func init() { //nolint:gochecknoinits
|
||||||
|
|||||||
@@ -13,9 +13,9 @@ import (
|
|||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/config"
|
"cunicu.li/cunicu/pkg/config"
|
||||||
"github.com/stv0g/cunicu/pkg/log"
|
"cunicu.li/cunicu/pkg/log"
|
||||||
"github.com/stv0g/cunicu/pkg/tty"
|
"cunicu.li/cunicu/pkg/tty"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -50,7 +50,7 @@ Website:
|
|||||||
https://cunicu.li
|
https://cunicu.li
|
||||||
|
|
||||||
Code & Issues:
|
Code & Issues:
|
||||||
https://github.com/stv0g/cunicu
|
https://github.com/cunicu/cunicu
|
||||||
`
|
`
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import (
|
|||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/selfupdate"
|
"cunicu.li/cunicu/pkg/selfupdate"
|
||||||
)
|
)
|
||||||
|
|
||||||
type selfUpdateOptions struct {
|
type selfUpdateOptions struct {
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ import (
|
|||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
"google.golang.org/grpc/credentials/insecure"
|
"google.golang.org/grpc/credentials/insecure"
|
||||||
|
|
||||||
osx "github.com/stv0g/cunicu/pkg/os"
|
osx "cunicu.li/cunicu/pkg/os"
|
||||||
grpcx "github.com/stv0g/cunicu/pkg/signaling/grpc"
|
grpcx "cunicu.li/cunicu/pkg/signaling/grpc"
|
||||||
)
|
)
|
||||||
|
|
||||||
type signalOptions struct {
|
type signalOptions struct {
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ import (
|
|||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"google.golang.org/protobuf/encoding/protojson"
|
"google.golang.org/protobuf/encoding/protojson"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/config"
|
"cunicu.li/cunicu/pkg/config"
|
||||||
"github.com/stv0g/cunicu/pkg/crypto"
|
"cunicu.li/cunicu/pkg/crypto"
|
||||||
rpcproto "github.com/stv0g/cunicu/pkg/proto/rpc"
|
rpcproto "cunicu.li/cunicu/pkg/proto/rpc"
|
||||||
)
|
)
|
||||||
|
|
||||||
type statusOptions struct {
|
type statusOptions struct {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/proto/rpc"
|
"cunicu.li/cunicu/pkg/proto/rpc"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() { //nolint:gochecknoinits
|
func init() { //nolint:gochecknoinits
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/proto"
|
"cunicu.li/cunicu/pkg/proto"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() { //nolint:gochecknoinits
|
func init() { //nolint:gochecknoinits
|
||||||
|
|||||||
@@ -11,10 +11,10 @@ import (
|
|||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"google.golang.org/protobuf/encoding/protojson"
|
"google.golang.org/protobuf/encoding/protojson"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/buildinfo"
|
"cunicu.li/cunicu/pkg/buildinfo"
|
||||||
"github.com/stv0g/cunicu/pkg/config"
|
"cunicu.li/cunicu/pkg/config"
|
||||||
"github.com/stv0g/cunicu/pkg/proto"
|
"cunicu.li/cunicu/pkg/proto"
|
||||||
"github.com/stv0g/cunicu/pkg/rpc"
|
"cunicu.li/cunicu/pkg/rpc"
|
||||||
)
|
)
|
||||||
|
|
||||||
type versionOptions struct {
|
type versionOptions struct {
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import (
|
|||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
rpcproto "github.com/stv0g/cunicu/pkg/proto/rpc"
|
rpcproto "cunicu.li/cunicu/pkg/proto/rpc"
|
||||||
)
|
)
|
||||||
|
|
||||||
var errNoSuchInterface = errors.New("unknown interface")
|
var errNoSuchInterface = errors.New("unknown interface")
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ import (
|
|||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
||||||
osx "github.com/stv0g/cunicu/pkg/os"
|
osx "cunicu.li/cunicu/pkg/os"
|
||||||
"github.com/stv0g/cunicu/pkg/wg/tracer"
|
"cunicu.li/cunicu/pkg/wg/tracer"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|||||||
@@ -14,9 +14,9 @@ import (
|
|||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
|
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
|
||||||
|
|
||||||
proto "github.com/stv0g/cunicu/pkg/proto/core"
|
proto "cunicu.li/cunicu/pkg/proto/core"
|
||||||
rpcproto "github.com/stv0g/cunicu/pkg/proto/rpc"
|
rpcproto "cunicu.li/cunicu/pkg/proto/rpc"
|
||||||
"github.com/stv0g/cunicu/pkg/wg"
|
"cunicu.li/cunicu/pkg/wg"
|
||||||
)
|
)
|
||||||
|
|
||||||
var errUnknownField = errors.New("unknown field")
|
var errUnknownField = errors.New("unknown field")
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ The following file contains a full-featured set of cunīcu's options.
|
|||||||
|
|
||||||
You can find the file at:
|
You can find the file at:
|
||||||
- In a local installation: `/etc/cunicu/cunicu.advanced.yaml`
|
- In a local installation: `/etc/cunicu/cunicu.advanced.yaml`
|
||||||
- In the Git repo: [`etc/cunicu.advanced.yaml`](https://github.com/stv0g/cunicu/blob/master/etc/cunicu.advanced.yaml)
|
- In the Git repo: [`etc/cunicu.advanced.yaml`](https://github.com/cunicu/cunicu/blob/master/etc/cunicu.advanced.yaml)
|
||||||
|
|
||||||
import ExampleConfig from '../../src/components/ExampleConfig';
|
import ExampleConfig from '../../src/components/ExampleConfig';
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ The following example contains just the basic settings.
|
|||||||
|
|
||||||
You can find the file at:
|
You can find the file at:
|
||||||
- In a local installation: `/etc/cunicu/cunicu.yaml`
|
- In a local installation: `/etc/cunicu/cunicu.yaml`
|
||||||
- In the Git repo: [`etc/cunicu.yaml`](https://github.com/stv0g/cunicu/blob/master/etc/cunicu.yaml)
|
- In the Git repo: [`etc/cunicu.yaml`](https://github.com/cunicu/cunicu/blob/master/etc/cunicu.yaml)
|
||||||
|
|
||||||
import ExampleConfig from '../../src/components/ExampleConfig';
|
import ExampleConfig from '../../src/components/ExampleConfig';
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ JSON Schema is the most portable and broadly supported choice for YAML validatio
|
|||||||
|
|
||||||
The schema of cunīcu's configuration file is available at:
|
The schema of cunīcu's configuration file is available at:
|
||||||
|
|
||||||
- [`etc/cunicu.schema.yaml`](https://github.com/stv0g/cunicu/blob/master/etc/cunicu.schema.yaml)
|
- [`etc/cunicu.schema.yaml`](https://github.com/cunicu/cunicu/blob/master/etc/cunicu.schema.yaml)
|
||||||
- https://cunicu.li/schemas/config.yaml
|
- https://cunicu.li/schemas/config.yaml
|
||||||
|
|
||||||
## Editor / Language Server support
|
## Editor / Language Server support
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ cunīcu is written almost completely in [Go](https://go.dev/) and heavily relies
|
|||||||
|
|
||||||
Furthermore use the following services to manage our development:
|
Furthermore use the following services to manage our development:
|
||||||
|
|
||||||
- [GitHub](https://github.com/stv0g/cunicu) for source code management and CI pipelines
|
- [GitHub](https://github.com/cunicu/cunicu) for source code management and CI pipelines
|
||||||
- [Codecov](https://app.codecov.io/gh/stv0g/cunicu) for code coverage analysis
|
- [Codecov](https://app.codecov.io/gh/cunicu/cunicu) for code coverage analysis
|
||||||
|
|
||||||
## Testing
|
## Testing
|
||||||
|
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ The _envelopes_ are containers which encrypt the carried _message_ via asymmetri
|
|||||||
|
|
||||||
Both the _envelope_ and the _message_ are serialized using Protobuf.
|
Both the _envelope_ and the _message_ are serialized using Protobuf.
|
||||||
|
|
||||||
Checkout the [`pkg/pb/signaling.proto`](https://github.com/stv0g/cunicu/blob/master/proto/signaling/signaling.proto) for details.
|
Checkout the [`pkg/pb/signaling.proto`](https://github.com/cunicu/cunicu/blob/master/proto/signaling/signaling.proto) for details.
|
||||||
|
|
||||||
## Backends
|
## Backends
|
||||||
|
|
||||||
@@ -70,7 +70,7 @@ cunīcu can support multiple backends for signaling session information such as
|
|||||||
- Kubernetes API server
|
- Kubernetes API server
|
||||||
|
|
||||||
For the use within a Kubernetes cluster also a dedicated backend using the Kubernetes api-server is available.
|
For the use within a Kubernetes cluster also a dedicated backend using the Kubernetes api-server is available.
|
||||||
Checkout the [`Backend`](https://github.com/stv0g/cunicu/blob/master/pkg/signaling/backend.go) interface for implementing your own backend.
|
Checkout the [`Backend`](https://github.com/cunicu/cunicu/blob/master/pkg/signaling/backend.go) interface for implementing your own backend.
|
||||||
|
|
||||||
### Semantics
|
### Semantics
|
||||||
|
|
||||||
@@ -84,7 +84,7 @@ A backend must:
|
|||||||
|
|
||||||
### Interface
|
### Interface
|
||||||
|
|
||||||
All signaling backends implement the rather simple [`signaling.Backend` interface](https://github.com/stv0g/cunicu/blob/master/pkg/signaling/backend.go):
|
All signaling backends implement the rather simple [`signaling.Backend` interface](https://github.com/cunicu/cunicu/blob/master/pkg/signaling/backend.go):
|
||||||
|
|
||||||
```go
|
```go
|
||||||
type Message = pb.SignalingMessage
|
type Message = pb.SignalingMessage
|
||||||
|
|||||||
@@ -9,12 +9,12 @@ hide_title: true
|
|||||||
<p align="center" >
|
<p align="center" >
|
||||||
<img style={{width: '60%'}} src="/img/cunicu_logo.svg" alt="cunīcu logo" />
|
<img style={{width: '60%'}} src="/img/cunicu_logo.svg" alt="cunīcu logo" />
|
||||||
|
|
||||||
[](https://github.com/stv0g/cunicu/actions)
|
[](https://github.com/cunicu/cunicu/actions)
|
||||||
[](https://goreportcard.com/report/github.com/stv0g/cunicu)
|
[](https://goreportcard.com/report/github.com/cunicu/cunicu)
|
||||||
[](https://app.codecov.io/gh/stv0g/cunicu)
|
[](https://app.codecov.io/gh/cunicu/cunicu)
|
||||||
[](https://github.com/stv0g/cunicu/blob/master/LICENSE)
|
[](https://github.com/cunicu/cunicu/blob/master/LICENSE)
|
||||||

|

|
||||||
[](https://pkg.go.dev/github.com/stv0g/cunicu)
|
[](https://pkg.go.dev/github.com/cunicu/cunicu)
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
:::caution cunīcu is currently still in an Alpha state and not usable yet 🚧
|
:::caution cunīcu is currently still in an Alpha state and not usable yet 🚧
|
||||||
@@ -66,7 +66,7 @@ It has been changed from the former name _wice_ in order to broaden the scope of
|
|||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
cunīcu is licensed under the [Apache 2.0](https://github.com/stv0g/cunicu/blob/master/LICENSE) license.
|
cunīcu is licensed under the [Apache 2.0](https://github.com/cunicu/cunicu/blob/master/LICENSE) license.
|
||||||
|
|
||||||
## Funding acknowledgement
|
## Funding acknowledgement
|
||||||
|
|
||||||
@@ -82,6 +82,6 @@ _WireGuard_ and the _WireGuard_ logo are [registered trademarks](https://www.wir
|
|||||||
|
|
||||||
[pion-ice]: https://github.com/pion/ice
|
[pion-ice]: https://github.com/pion/ice
|
||||||
|
|
||||||
[cunicu]: https://github.com/stv0g/cunicu
|
[cunicu]: https://github.com/cunicu/cunicu
|
||||||
|
|
||||||
[erigrid]: https://erigrid2.eu
|
[erigrid]: https://erigrid2.eu
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ These binary versions can be manually downloaded and installed.
|
|||||||
|
|
||||||
## By Hand
|
## By Hand
|
||||||
|
|
||||||
1. [Download your desired version](https://github.com/stv0g/cunicu/releases)
|
1. [Download your desired version](https://github.com/cunicu/cunicu/releases)
|
||||||
2. Unzip it: `gunzip cunicu_0.0.1_linux_amd64.tar.gz`
|
2. Unzip it: `gunzip cunicu_0.0.1_linux_amd64.tar.gz`
|
||||||
3. Move the unzipped binary to its desired destination: `mv cunicu /usr/local/bin/cunicu`
|
3. Move the unzipped binary to its desired destination: `mv cunicu /usr/local/bin/cunicu`
|
||||||
4. Make it executable: `chmod +x /usr/local/bin/cunicu`
|
4. Make it executable: `chmod +x /usr/local/bin/cunicu`
|
||||||
@@ -68,10 +68,10 @@ sudo yum install cunicu
|
|||||||
|
|
||||||
### From Homebrew (macOS)
|
### From Homebrew (macOS)
|
||||||
|
|
||||||
A formulae for cunīcu is available in our Homebrew Tap: https://github.com/stv0g/homebrew-cunicu.
|
A formulae for cunīcu is available in our Homebrew Tap: https://github.com/cunicu/homebrew-cunicu.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
brew tap stv0g/cunicu
|
brew tap cunicu/cunicu
|
||||||
brew install cunicu
|
brew install cunicu
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -100,7 +100,7 @@ The `nix` branch of the cunicu repo is intended to always have a working nix pac
|
|||||||
Building and installing cunīcu via [Nix](https://nix.dev/) is possible with [flakes](https://nixos.wiki/wiki/Flakes):
|
Building and installing cunīcu via [Nix](https://nix.dev/) is possible with [flakes](https://nixos.wiki/wiki/Flakes):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
nix profile install github:stv0g/cunicu/nix?dir=nix
|
nix profile install github:cunicu/cunicu/nix?dir=nix
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Legacy
|
#### Legacy
|
||||||
@@ -109,7 +109,7 @@ You can also use `nix-env`/`nix-build` if you have cunicu checked out locally.
|
|||||||
|
|
||||||
```
|
```
|
||||||
# check out cunicu
|
# check out cunicu
|
||||||
git clone https://github.com/stv0g/cunicu --branch nix && cd cunicu
|
git clone https://github.com/cunicu/cunicu --branch nix && cd cunicu
|
||||||
|
|
||||||
# Build cunicu and add it to the environment
|
# Build cunicu and add it to the environment
|
||||||
nix-env -if ./nix
|
nix-env -if ./nix
|
||||||
@@ -122,7 +122,7 @@ Building cunīcu is fairly easy and allows you to install the latest unreleased
|
|||||||
You must have a working Go environment.
|
You must have a working Go environment.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
go install github.com/stv0g/cunicu/cmd/cunicu@latest
|
go install github.com/cunicu/cunicu/cmd/cunicu@latest
|
||||||
```
|
```
|
||||||
|
|
||||||
If required, it will fetch the dependencies and cache them, and validate configuration.
|
If required, it will fetch the dependencies and cache them, and validate configuration.
|
||||||
|
|||||||
2
go.mod
2
go.mod
@@ -1,7 +1,7 @@
|
|||||||
// SPDX-FileCopyrightText: 2023 Steffen Vogel <post@steffenvogel.de>
|
// SPDX-FileCopyrightText: 2023 Steffen Vogel <post@steffenvogel.de>
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
module github.com/stv0g/cunicu
|
module cunicu.li/cunicu
|
||||||
|
|
||||||
go 1.21
|
go 1.21
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/proto"
|
"cunicu.li/cunicu/pkg/proto"
|
||||||
)
|
)
|
||||||
|
|
||||||
//nolint:gochecknoglobals
|
//nolint:gochecknoglobals
|
||||||
|
|||||||
@@ -15,12 +15,12 @@ import (
|
|||||||
"golang.org/x/sync/errgroup"
|
"golang.org/x/sync/errgroup"
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/crypto"
|
"cunicu.li/cunicu/pkg/crypto"
|
||||||
icex "github.com/stv0g/cunicu/pkg/ice"
|
icex "cunicu.li/cunicu/pkg/ice"
|
||||||
"github.com/stv0g/cunicu/pkg/log"
|
"cunicu.li/cunicu/pkg/log"
|
||||||
signalingproto "github.com/stv0g/cunicu/pkg/proto/signaling"
|
signalingproto "cunicu.li/cunicu/pkg/proto/signaling"
|
||||||
grpcx "github.com/stv0g/cunicu/pkg/signaling/grpc"
|
grpcx "cunicu.li/cunicu/pkg/signaling/grpc"
|
||||||
"github.com/stv0g/cunicu/pkg/types/slices"
|
"cunicu.li/cunicu/pkg/types/slices"
|
||||||
)
|
)
|
||||||
|
|
||||||
var errInvalidURLScheme = errors.New("invalid ICE URL scheme")
|
var errInvalidURLScheme = errors.New("invalid ICE URL scheme")
|
||||||
|
|||||||
@@ -16,9 +16,9 @@ import (
|
|||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
"google.golang.org/grpc/credentials/insecure"
|
"google.golang.org/grpc/credentials/insecure"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/config"
|
"cunicu.li/cunicu/pkg/config"
|
||||||
"github.com/stv0g/cunicu/pkg/crypto"
|
"cunicu.li/cunicu/pkg/crypto"
|
||||||
grpcx "github.com/stv0g/cunicu/pkg/signaling/grpc"
|
grpcx "cunicu.li/cunicu/pkg/signaling/grpc"
|
||||||
|
|
||||||
. "github.com/onsi/ginkgo/v2"
|
. "github.com/onsi/ginkgo/v2"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
|
|||||||
@@ -16,8 +16,8 @@ import (
|
|||||||
"github.com/spf13/pflag"
|
"github.com/spf13/pflag"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/log"
|
"cunicu.li/cunicu/pkg/log"
|
||||||
"github.com/stv0g/cunicu/pkg/types"
|
"cunicu.li/cunicu/pkg/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
|
|||||||
@@ -19,9 +19,9 @@ import (
|
|||||||
"github.com/pion/ice/v2"
|
"github.com/pion/ice/v2"
|
||||||
"github.com/spf13/pflag"
|
"github.com/spf13/pflag"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/config"
|
"cunicu.li/cunicu/pkg/config"
|
||||||
"github.com/stv0g/cunicu/pkg/crypto"
|
"cunicu.li/cunicu/pkg/crypto"
|
||||||
"github.com/stv0g/cunicu/test"
|
"cunicu.li/cunicu/test"
|
||||||
|
|
||||||
. "github.com/onsi/ginkgo/v2"
|
. "github.com/onsi/ginkgo/v2"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ import (
|
|||||||
|
|
||||||
"github.com/pion/ice/v2"
|
"github.com/pion/ice/v2"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/log"
|
"cunicu.li/cunicu/pkg/log"
|
||||||
"github.com/stv0g/cunicu/pkg/wg"
|
"cunicu.li/cunicu/pkg/wg"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
package config_test
|
package config_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/stv0g/cunicu/pkg/config"
|
"cunicu.li/cunicu/pkg/config"
|
||||||
|
|
||||||
. "github.com/onsi/ginkgo/v2"
|
. "github.com/onsi/ginkgo/v2"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"slices"
|
"slices"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/types"
|
"cunicu.li/cunicu/pkg/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ChangedHandler interface {
|
type ChangedHandler interface {
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import (
|
|||||||
"github.com/pion/ice/v2"
|
"github.com/pion/ice/v2"
|
||||||
"github.com/pion/stun"
|
"github.com/pion/stun"
|
||||||
|
|
||||||
icex "github.com/stv0g/cunicu/pkg/ice"
|
icex "cunicu.li/cunicu/pkg/ice"
|
||||||
)
|
)
|
||||||
|
|
||||||
var errUnknownHookType = errors.New("unknown hook type")
|
var errUnknownHookType = errors.New("unknown hook type")
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
|
|
||||||
"github.com/pion/ice/v2"
|
"github.com/pion/ice/v2"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/config"
|
"cunicu.li/cunicu/pkg/config"
|
||||||
|
|
||||||
. "github.com/onsi/ginkgo/v2"
|
. "github.com/onsi/ginkgo/v2"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import (
|
|||||||
"github.com/mitchellh/mapstructure"
|
"github.com/mitchellh/mapstructure"
|
||||||
"github.com/pion/ice/v2"
|
"github.com/pion/ice/v2"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/types"
|
"cunicu.li/cunicu/pkg/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
const delim = "."
|
const delim = "."
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
package config_test
|
package config_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/stv0g/cunicu/pkg/config"
|
"cunicu.li/cunicu/pkg/config"
|
||||||
|
|
||||||
. "github.com/onsi/ginkgo/v2"
|
. "github.com/onsi/ginkgo/v2"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
package config_test
|
package config_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/stv0g/cunicu/pkg/config"
|
"cunicu.li/cunicu/pkg/config"
|
||||||
|
|
||||||
. "github.com/onsi/ginkgo/v2"
|
. "github.com/onsi/ginkgo/v2"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ import (
|
|||||||
|
|
||||||
"github.com/knadh/koanf/providers/file"
|
"github.com/knadh/koanf/providers/file"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/buildinfo"
|
"cunicu.li/cunicu/pkg/buildinfo"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ import (
|
|||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"golang.org/x/sync/errgroup"
|
"golang.org/x/sync/errgroup"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/log"
|
"cunicu.li/cunicu/pkg/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
@@ -12,9 +12,9 @@ import (
|
|||||||
"github.com/foxcpp/go-mockdns"
|
"github.com/foxcpp/go-mockdns"
|
||||||
"github.com/onsi/gomega/ghttp"
|
"github.com/onsi/gomega/ghttp"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/buildinfo"
|
"cunicu.li/cunicu/pkg/buildinfo"
|
||||||
"github.com/stv0g/cunicu/pkg/config"
|
"cunicu.li/cunicu/pkg/config"
|
||||||
"github.com/stv0g/cunicu/pkg/crypto"
|
"cunicu.li/cunicu/pkg/crypto"
|
||||||
|
|
||||||
. "github.com/onsi/ginkgo/v2"
|
. "github.com/onsi/ginkgo/v2"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
|
|||||||
@@ -11,10 +11,10 @@ import (
|
|||||||
"slices"
|
"slices"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/crypto"
|
"cunicu.li/cunicu/pkg/crypto"
|
||||||
"github.com/stv0g/cunicu/pkg/link"
|
"cunicu.li/cunicu/pkg/link"
|
||||||
"github.com/stv0g/cunicu/pkg/log"
|
"cunicu.li/cunicu/pkg/log"
|
||||||
"github.com/stv0g/cunicu/pkg/wg"
|
"cunicu.li/cunicu/pkg/wg"
|
||||||
)
|
)
|
||||||
|
|
||||||
var errNotSupported = errors.New("not supported on this platform")
|
var errNotSupported = errors.New("not supported on this platform")
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import (
|
|||||||
|
|
||||||
"github.com/pion/ice/v2"
|
"github.com/pion/ice/v2"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/crypto"
|
"cunicu.li/cunicu/pkg/crypto"
|
||||||
)
|
)
|
||||||
|
|
||||||
var errInvalidSettings = errors.New("invalid settings")
|
var errInvalidSettings = errors.New("invalid settings")
|
||||||
|
|||||||
@@ -10,10 +10,10 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"cunicu.li/cunicu/pkg/log"
|
||||||
"github.com/knadh/koanf/parsers/yaml"
|
"github.com/knadh/koanf/parsers/yaml"
|
||||||
"github.com/knadh/koanf/providers/confmap"
|
"github.com/knadh/koanf/providers/confmap"
|
||||||
"github.com/knadh/koanf/v2"
|
"github.com/knadh/koanf/v2"
|
||||||
"github.com/stv0g/cunicu/pkg/log"
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ package config_test
|
|||||||
import (
|
import (
|
||||||
"github.com/spf13/pflag"
|
"github.com/spf13/pflag"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/config"
|
"cunicu.li/cunicu/pkg/config"
|
||||||
|
|
||||||
. "github.com/onsi/ginkgo/v2"
|
. "github.com/onsi/ginkgo/v2"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ package crypto_test
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/crypto"
|
"cunicu.li/cunicu/pkg/crypto"
|
||||||
"github.com/stv0g/cunicu/test"
|
"cunicu.li/cunicu/test"
|
||||||
|
|
||||||
. "github.com/onsi/ginkgo/v2"
|
. "github.com/onsi/ginkgo/v2"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ package crypto_test
|
|||||||
import (
|
import (
|
||||||
"net"
|
"net"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/crypto"
|
"cunicu.li/cunicu/pkg/crypto"
|
||||||
"github.com/stv0g/cunicu/test"
|
"cunicu.li/cunicu/test"
|
||||||
|
|
||||||
. "github.com/onsi/ginkgo/v2"
|
. "github.com/onsi/ginkgo/v2"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
|
|||||||
@@ -11,12 +11,12 @@ import (
|
|||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"golang.zx2c4.com/wireguard/wgctrl"
|
"golang.zx2c4.com/wireguard/wgctrl"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/config"
|
"cunicu.li/cunicu/pkg/config"
|
||||||
"github.com/stv0g/cunicu/pkg/device"
|
"cunicu.li/cunicu/pkg/device"
|
||||||
"github.com/stv0g/cunicu/pkg/log"
|
"cunicu.li/cunicu/pkg/log"
|
||||||
osx "github.com/stv0g/cunicu/pkg/os"
|
osx "cunicu.li/cunicu/pkg/os"
|
||||||
"github.com/stv0g/cunicu/pkg/signaling"
|
"cunicu.li/cunicu/pkg/signaling"
|
||||||
"github.com/stv0g/cunicu/pkg/wg"
|
"cunicu.li/cunicu/pkg/wg"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
@@ -11,12 +11,12 @@ import (
|
|||||||
"net"
|
"net"
|
||||||
"syscall"
|
"syscall"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/crypto"
|
"cunicu.li/cunicu/pkg/crypto"
|
||||||
"github.com/stv0g/cunicu/pkg/daemon"
|
"cunicu.li/cunicu/pkg/daemon"
|
||||||
"github.com/stv0g/cunicu/pkg/link"
|
"cunicu.li/cunicu/pkg/link"
|
||||||
"github.com/stv0g/cunicu/pkg/log"
|
"cunicu.li/cunicu/pkg/log"
|
||||||
netx "github.com/stv0g/cunicu/pkg/net"
|
netx "cunicu.li/cunicu/pkg/net"
|
||||||
"github.com/stv0g/cunicu/pkg/wg"
|
"cunicu.li/cunicu/pkg/wg"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
|
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -8,10 +8,10 @@ import (
|
|||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/crypto"
|
"cunicu.li/cunicu/pkg/crypto"
|
||||||
"github.com/stv0g/cunicu/pkg/daemon"
|
"cunicu.li/cunicu/pkg/daemon"
|
||||||
"github.com/stv0g/cunicu/pkg/daemon/feature/pdisc"
|
"cunicu.li/cunicu/pkg/daemon/feature/pdisc"
|
||||||
"github.com/stv0g/cunicu/pkg/wg"
|
"cunicu.li/cunicu/pkg/wg"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (i *Interface) OnInterfaceModified(ci *daemon.Interface, old *wg.Interface, mod daemon.InterfaceModifier) {
|
func (i *Interface) OnInterfaceModified(ci *daemon.Interface, old *wg.Interface, mod daemon.InterfaceModifier) {
|
||||||
|
|||||||
@@ -15,9 +15,9 @@ import (
|
|||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
|
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/crypto"
|
"cunicu.li/cunicu/pkg/crypto"
|
||||||
"github.com/stv0g/cunicu/pkg/daemon"
|
"cunicu.li/cunicu/pkg/daemon"
|
||||||
"github.com/stv0g/cunicu/pkg/log"
|
"cunicu.li/cunicu/pkg/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
var Get = daemon.RegisterFeature(New, 20) //nolint:gochecknoglobals
|
var Get = daemon.RegisterFeature(New, 20) //nolint:gochecknoglobals
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
package epdisc
|
package epdisc
|
||||||
|
|
||||||
import (
|
import (
|
||||||
epdiscproto "github.com/stv0g/cunicu/pkg/proto/feature/epdisc"
|
epdiscproto "cunicu.li/cunicu/pkg/proto/feature/epdisc"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ConnectionState = epdiscproto.ConnectionState
|
type ConnectionState = epdiscproto.ConnectionState
|
||||||
|
|||||||
@@ -13,10 +13,10 @@ import (
|
|||||||
"github.com/pion/stun"
|
"github.com/pion/stun"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/crypto"
|
"cunicu.li/cunicu/pkg/crypto"
|
||||||
"github.com/stv0g/cunicu/pkg/daemon"
|
"cunicu.li/cunicu/pkg/daemon"
|
||||||
"github.com/stv0g/cunicu/pkg/log"
|
"cunicu.li/cunicu/pkg/log"
|
||||||
epdiscproto "github.com/stv0g/cunicu/pkg/proto/feature/epdisc"
|
epdiscproto "cunicu.li/cunicu/pkg/proto/feature/epdisc"
|
||||||
)
|
)
|
||||||
|
|
||||||
var Get = daemon.RegisterFeature(New, 50) //nolint:gochecknoglobals
|
var Get = daemon.RegisterFeature(New, 50) //nolint:gochecknoglobals
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ import (
|
|||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
|
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/daemon"
|
"cunicu.li/cunicu/pkg/daemon"
|
||||||
"github.com/stv0g/cunicu/pkg/wg"
|
"cunicu.li/cunicu/pkg/wg"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (i *Interface) OnInterfaceModified(_ *daemon.Interface, _ *wg.Interface, m daemon.InterfaceModifier) {
|
func (i *Interface) OnInterfaceModified(_ *daemon.Interface, _ *wg.Interface, m daemon.InterfaceModifier) {
|
||||||
|
|||||||
@@ -12,12 +12,12 @@ import (
|
|||||||
"github.com/pion/ice/v2"
|
"github.com/pion/ice/v2"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/config"
|
"cunicu.li/cunicu/pkg/config"
|
||||||
icex "github.com/stv0g/cunicu/pkg/ice"
|
icex "cunicu.li/cunicu/pkg/ice"
|
||||||
"github.com/stv0g/cunicu/pkg/link"
|
"cunicu.li/cunicu/pkg/link"
|
||||||
"github.com/stv0g/cunicu/pkg/log"
|
"cunicu.li/cunicu/pkg/log"
|
||||||
netx "github.com/stv0g/cunicu/pkg/net"
|
netx "cunicu.li/cunicu/pkg/net"
|
||||||
"github.com/stv0g/cunicu/pkg/wg"
|
"cunicu.li/cunicu/pkg/wg"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (i *Interface) setupUDPMux() error {
|
func (i *Interface) setupUDPMux() error {
|
||||||
|
|||||||
@@ -18,15 +18,15 @@ import (
|
|||||||
"google.golang.org/grpc/codes"
|
"google.golang.org/grpc/codes"
|
||||||
"google.golang.org/grpc/status"
|
"google.golang.org/grpc/status"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/crypto"
|
"cunicu.li/cunicu/pkg/crypto"
|
||||||
"github.com/stv0g/cunicu/pkg/daemon"
|
"cunicu.li/cunicu/pkg/daemon"
|
||||||
"github.com/stv0g/cunicu/pkg/log"
|
"cunicu.li/cunicu/pkg/log"
|
||||||
proto "github.com/stv0g/cunicu/pkg/proto"
|
proto "cunicu.li/cunicu/pkg/proto"
|
||||||
coreproto "github.com/stv0g/cunicu/pkg/proto/core"
|
coreproto "cunicu.li/cunicu/pkg/proto/core"
|
||||||
epdiscproto "github.com/stv0g/cunicu/pkg/proto/feature/epdisc"
|
epdiscproto "cunicu.li/cunicu/pkg/proto/feature/epdisc"
|
||||||
"github.com/stv0g/cunicu/pkg/signaling"
|
"cunicu.li/cunicu/pkg/signaling"
|
||||||
"github.com/stv0g/cunicu/pkg/types"
|
"cunicu.li/cunicu/pkg/types"
|
||||||
"github.com/stv0g/cunicu/pkg/wg"
|
"cunicu.li/cunicu/pkg/wg"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
@@ -7,11 +7,11 @@ import (
|
|||||||
"github.com/pion/ice/v2"
|
"github.com/pion/ice/v2"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/crypto"
|
"cunicu.li/cunicu/pkg/crypto"
|
||||||
"github.com/stv0g/cunicu/pkg/daemon"
|
"cunicu.li/cunicu/pkg/daemon"
|
||||||
epdiscproto "github.com/stv0g/cunicu/pkg/proto/feature/epdisc"
|
epdiscproto "cunicu.li/cunicu/pkg/proto/feature/epdisc"
|
||||||
"github.com/stv0g/cunicu/pkg/signaling"
|
"cunicu.li/cunicu/pkg/signaling"
|
||||||
"github.com/stv0g/cunicu/pkg/wg"
|
"cunicu.li/cunicu/pkg/wg"
|
||||||
)
|
)
|
||||||
|
|
||||||
// onConnectionStateChange is a callback which gets called by the ICE agent
|
// onConnectionStateChange is a callback which gets called by the ICE agent
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ import (
|
|||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
wgconn "golang.zx2c4.com/wireguard/conn"
|
wgconn "golang.zx2c4.com/wireguard/conn"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/log"
|
"cunicu.li/cunicu/pkg/log"
|
||||||
"github.com/stv0g/cunicu/pkg/wg"
|
"cunicu.li/cunicu/pkg/wg"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Compile-time assertions
|
// Compile-time assertions
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ import (
|
|||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
wgdevice "golang.zx2c4.com/wireguard/device"
|
wgdevice "golang.zx2c4.com/wireguard/device"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/log"
|
"cunicu.li/cunicu/pkg/log"
|
||||||
"github.com/stv0g/cunicu/pkg/wg"
|
"cunicu.li/cunicu/pkg/wg"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Compile-time assertions
|
// Compile-time assertions
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import (
|
|||||||
"github.com/pion/ice/v2"
|
"github.com/pion/ice/v2"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/log"
|
"cunicu.li/cunicu/pkg/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -15,11 +15,11 @@ import (
|
|||||||
"google.golang.org/protobuf/encoding/protojson"
|
"google.golang.org/protobuf/encoding/protojson"
|
||||||
"google.golang.org/protobuf/proto"
|
"google.golang.org/protobuf/proto"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/config"
|
"cunicu.li/cunicu/pkg/config"
|
||||||
"github.com/stv0g/cunicu/pkg/daemon"
|
"cunicu.li/cunicu/pkg/daemon"
|
||||||
"github.com/stv0g/cunicu/pkg/daemon/feature/epdisc"
|
"cunicu.li/cunicu/pkg/daemon/feature/epdisc"
|
||||||
"github.com/stv0g/cunicu/pkg/log"
|
"cunicu.li/cunicu/pkg/log"
|
||||||
"github.com/stv0g/cunicu/pkg/wg"
|
"cunicu.li/cunicu/pkg/wg"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ExecHook struct {
|
type ExecHook struct {
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ package hooks
|
|||||||
import (
|
import (
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/config"
|
"cunicu.li/cunicu/pkg/config"
|
||||||
"github.com/stv0g/cunicu/pkg/daemon"
|
"cunicu.li/cunicu/pkg/daemon"
|
||||||
"github.com/stv0g/cunicu/pkg/log"
|
"cunicu.li/cunicu/pkg/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
var Get = daemon.RegisterFeature(New, 70) //nolint:gochecknoglobals
|
var Get = daemon.RegisterFeature(New, 70) //nolint:gochecknoglobals
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
package hooks
|
package hooks
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/stv0g/cunicu/pkg/daemon"
|
"cunicu.li/cunicu/pkg/daemon"
|
||||||
coreproto "github.com/stv0g/cunicu/pkg/proto/core"
|
coreproto "cunicu.li/cunicu/pkg/proto/core"
|
||||||
)
|
)
|
||||||
|
|
||||||
func marshalRedactedInterface(i *daemon.Interface) *coreproto.Interface {
|
func marshalRedactedInterface(i *daemon.Interface) *coreproto.Interface {
|
||||||
|
|||||||
@@ -14,14 +14,14 @@ import (
|
|||||||
"google.golang.org/protobuf/encoding/protojson"
|
"google.golang.org/protobuf/encoding/protojson"
|
||||||
"google.golang.org/protobuf/proto"
|
"google.golang.org/protobuf/proto"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/buildinfo"
|
"cunicu.li/cunicu/pkg/buildinfo"
|
||||||
"github.com/stv0g/cunicu/pkg/config"
|
"cunicu.li/cunicu/pkg/config"
|
||||||
"github.com/stv0g/cunicu/pkg/daemon"
|
"cunicu.li/cunicu/pkg/daemon"
|
||||||
"github.com/stv0g/cunicu/pkg/daemon/feature/epdisc"
|
"cunicu.li/cunicu/pkg/daemon/feature/epdisc"
|
||||||
"github.com/stv0g/cunicu/pkg/log"
|
"cunicu.li/cunicu/pkg/log"
|
||||||
hooksproto "github.com/stv0g/cunicu/pkg/proto/feature/hooks"
|
hooksproto "cunicu.li/cunicu/pkg/proto/feature/hooks"
|
||||||
rpcproto "github.com/stv0g/cunicu/pkg/proto/rpc"
|
rpcproto "cunicu.li/cunicu/pkg/proto/rpc"
|
||||||
"github.com/stv0g/cunicu/pkg/wg"
|
"cunicu.li/cunicu/pkg/wg"
|
||||||
)
|
)
|
||||||
|
|
||||||
type WebHook struct {
|
type WebHook struct {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
|
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/daemon"
|
"cunicu.li/cunicu/pkg/daemon"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (i *Interface) OnPeerAdded(p *daemon.Peer) {
|
func (i *Interface) OnPeerAdded(p *daemon.Peer) {
|
||||||
|
|||||||
@@ -12,9 +12,9 @@ import (
|
|||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/daemon"
|
"cunicu.li/cunicu/pkg/daemon"
|
||||||
"github.com/stv0g/cunicu/pkg/log"
|
"cunicu.li/cunicu/pkg/log"
|
||||||
slicesx "github.com/stv0g/cunicu/pkg/types/slices"
|
slicesx "cunicu.li/cunicu/pkg/types/slices"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -9,12 +9,12 @@ import (
|
|||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/crypto"
|
"cunicu.li/cunicu/pkg/crypto"
|
||||||
"github.com/stv0g/cunicu/pkg/daemon"
|
"cunicu.li/cunicu/pkg/daemon"
|
||||||
"github.com/stv0g/cunicu/pkg/daemon/feature/hsync"
|
"cunicu.li/cunicu/pkg/daemon/feature/hsync"
|
||||||
pdiscproto "github.com/stv0g/cunicu/pkg/proto/feature/pdisc"
|
pdiscproto "cunicu.li/cunicu/pkg/proto/feature/pdisc"
|
||||||
"github.com/stv0g/cunicu/pkg/signaling"
|
"cunicu.li/cunicu/pkg/signaling"
|
||||||
"github.com/stv0g/cunicu/pkg/wg"
|
"cunicu.li/cunicu/pkg/wg"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (i *Interface) OnInterfaceModified(ci *daemon.Interface, old *wg.Interface, m daemon.InterfaceModifier) {
|
func (i *Interface) OnInterfaceModified(ci *daemon.Interface, old *wg.Interface, m daemon.InterfaceModifier) {
|
||||||
|
|||||||
@@ -12,14 +12,14 @@ import (
|
|||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/buildinfo"
|
"cunicu.li/cunicu/pkg/buildinfo"
|
||||||
"github.com/stv0g/cunicu/pkg/crypto"
|
"cunicu.li/cunicu/pkg/crypto"
|
||||||
"github.com/stv0g/cunicu/pkg/daemon"
|
"cunicu.li/cunicu/pkg/daemon"
|
||||||
"github.com/stv0g/cunicu/pkg/log"
|
"cunicu.li/cunicu/pkg/log"
|
||||||
proto "github.com/stv0g/cunicu/pkg/proto/core"
|
proto "cunicu.li/cunicu/pkg/proto/core"
|
||||||
pdiscproto "github.com/stv0g/cunicu/pkg/proto/feature/pdisc"
|
pdiscproto "cunicu.li/cunicu/pkg/proto/feature/pdisc"
|
||||||
"github.com/stv0g/cunicu/pkg/signaling"
|
"cunicu.li/cunicu/pkg/signaling"
|
||||||
"github.com/stv0g/cunicu/pkg/types/slices"
|
"cunicu.li/cunicu/pkg/types/slices"
|
||||||
)
|
)
|
||||||
|
|
||||||
var errFailedUpdatePublicKey = errors.New("can not change public key in non-update message")
|
var errFailedUpdatePublicKey = errors.New("can not change public key in non-update message")
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import (
|
|||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
|
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/daemon"
|
"cunicu.li/cunicu/pkg/daemon"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (i *Interface) OnPeerAdded(p *daemon.Peer) {
|
func (i *Interface) OnPeerAdded(p *daemon.Peer) {
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ import (
|
|||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/daemon"
|
"cunicu.li/cunicu/pkg/daemon"
|
||||||
"github.com/stv0g/cunicu/pkg/log"
|
"cunicu.li/cunicu/pkg/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
var errNotSupported = errors.New("not supported on this platform")
|
var errNotSupported = errors.New("not supported on this platform")
|
||||||
|
|||||||
@@ -13,9 +13,9 @@ import (
|
|||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"golang.org/x/sys/unix"
|
"golang.org/x/sys/unix"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/daemon"
|
"cunicu.li/cunicu/pkg/daemon"
|
||||||
"github.com/stv0g/cunicu/pkg/link"
|
"cunicu.li/cunicu/pkg/link"
|
||||||
netx "github.com/stv0g/cunicu/pkg/net"
|
netx "cunicu.li/cunicu/pkg/net"
|
||||||
)
|
)
|
||||||
|
|
||||||
// removeKernel removes all routes from the kernel which target
|
// removeKernel removes all routes from the kernel which target
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
package rtsync
|
package rtsync
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/stv0g/cunicu/pkg/daemon"
|
"cunicu.li/cunicu/pkg/daemon"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (i *Interface) removeKernel(_ *daemon.Peer) error {
|
func (i *Interface) removeKernel(_ *daemon.Peer) error {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
package daemon
|
package daemon
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/stv0g/cunicu/pkg/wg"
|
"cunicu.li/cunicu/pkg/wg"
|
||||||
)
|
)
|
||||||
|
|
||||||
type AllHandler interface {
|
type AllHandler interface {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
|
|
||||||
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
|
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/wg"
|
"cunicu.li/cunicu/pkg/wg"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Event any
|
type Event any
|
||||||
|
|||||||
@@ -12,14 +12,14 @@ import (
|
|||||||
"golang.zx2c4.com/wireguard/wgctrl"
|
"golang.zx2c4.com/wireguard/wgctrl"
|
||||||
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
|
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/config"
|
"cunicu.li/cunicu/pkg/config"
|
||||||
"github.com/stv0g/cunicu/pkg/crypto"
|
"cunicu.li/cunicu/pkg/crypto"
|
||||||
"github.com/stv0g/cunicu/pkg/device"
|
"cunicu.li/cunicu/pkg/device"
|
||||||
"github.com/stv0g/cunicu/pkg/log"
|
"cunicu.li/cunicu/pkg/log"
|
||||||
proto "github.com/stv0g/cunicu/pkg/proto"
|
proto "cunicu.li/cunicu/pkg/proto"
|
||||||
coreproto "github.com/stv0g/cunicu/pkg/proto/core"
|
coreproto "cunicu.li/cunicu/pkg/proto/core"
|
||||||
slicesx "github.com/stv0g/cunicu/pkg/types/slices"
|
slicesx "cunicu.li/cunicu/pkg/types/slices"
|
||||||
"github.com/stv0g/cunicu/pkg/wg"
|
"cunicu.li/cunicu/pkg/wg"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Interface struct {
|
type Interface struct {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ package daemon
|
|||||||
import (
|
import (
|
||||||
"slices"
|
"slices"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/wg"
|
"cunicu.li/cunicu/pkg/wg"
|
||||||
)
|
)
|
||||||
|
|
||||||
type InterfaceModifiedHandler interface {
|
type InterfaceModifiedHandler interface {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
package daemon
|
package daemon
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/stv0g/cunicu/pkg/crypto"
|
"cunicu.li/cunicu/pkg/crypto"
|
||||||
)
|
)
|
||||||
|
|
||||||
// InterfaceList stores all WireGuard interfaces indexed by their unique ifindex
|
// InterfaceList stores all WireGuard interfaces indexed by their unique ifindex
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ package daemon_test
|
|||||||
import (
|
import (
|
||||||
"math"
|
"math"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/daemon"
|
"cunicu.li/cunicu/pkg/daemon"
|
||||||
|
|
||||||
. "github.com/onsi/ginkgo/v2"
|
. "github.com/onsi/ginkgo/v2"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
|
|||||||
@@ -13,13 +13,13 @@ import (
|
|||||||
"golang.zx2c4.com/wireguard/wgctrl"
|
"golang.zx2c4.com/wireguard/wgctrl"
|
||||||
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
|
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/crypto"
|
"cunicu.li/cunicu/pkg/crypto"
|
||||||
"github.com/stv0g/cunicu/pkg/log"
|
"cunicu.li/cunicu/pkg/log"
|
||||||
netx "github.com/stv0g/cunicu/pkg/net"
|
netx "cunicu.li/cunicu/pkg/net"
|
||||||
proto "github.com/stv0g/cunicu/pkg/proto"
|
proto "cunicu.li/cunicu/pkg/proto"
|
||||||
coreproto "github.com/stv0g/cunicu/pkg/proto/core"
|
coreproto "cunicu.li/cunicu/pkg/proto/core"
|
||||||
"github.com/stv0g/cunicu/pkg/types"
|
"cunicu.li/cunicu/pkg/types"
|
||||||
slicesx "github.com/stv0g/cunicu/pkg/types/slices"
|
slicesx "cunicu.li/cunicu/pkg/types/slices"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Peer struct {
|
type Peer struct {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
||||||
coreproto "github.com/stv0g/cunicu/pkg/proto/core"
|
coreproto "cunicu.li/cunicu/pkg/proto/core"
|
||||||
)
|
)
|
||||||
|
|
||||||
type PeerState = coreproto.PeerState
|
type PeerState = coreproto.PeerState
|
||||||
|
|||||||
@@ -15,9 +15,9 @@ import (
|
|||||||
"golang.zx2c4.com/wireguard/wgctrl"
|
"golang.zx2c4.com/wireguard/wgctrl"
|
||||||
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
|
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/crypto"
|
"cunicu.li/cunicu/pkg/crypto"
|
||||||
"github.com/stv0g/cunicu/pkg/log"
|
"cunicu.li/cunicu/pkg/log"
|
||||||
slicesx "github.com/stv0g/cunicu/pkg/types/slices"
|
slicesx "cunicu.li/cunicu/pkg/types/slices"
|
||||||
)
|
)
|
||||||
|
|
||||||
var errNotSupported = errors.New("not supported on this platform")
|
var errNotSupported = errors.New("not supported on this platform")
|
||||||
|
|||||||
@@ -13,10 +13,10 @@ import (
|
|||||||
"golang.zx2c4.com/wireguard/wgctrl"
|
"golang.zx2c4.com/wireguard/wgctrl"
|
||||||
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
|
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/crypto"
|
"cunicu.li/cunicu/pkg/crypto"
|
||||||
"github.com/stv0g/cunicu/pkg/daemon"
|
"cunicu.li/cunicu/pkg/daemon"
|
||||||
"github.com/stv0g/cunicu/pkg/device"
|
"cunicu.li/cunicu/pkg/device"
|
||||||
"github.com/stv0g/cunicu/test"
|
"cunicu.li/cunicu/test"
|
||||||
|
|
||||||
. "github.com/onsi/ginkgo/v2"
|
. "github.com/onsi/ginkgo/v2"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ package daemon_test
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
osx "github.com/stv0g/cunicu/pkg/os"
|
osx "cunicu.li/cunicu/pkg/os"
|
||||||
"github.com/stv0g/cunicu/test"
|
"cunicu.li/cunicu/test"
|
||||||
|
|
||||||
. "github.com/onsi/ginkgo/v2"
|
. "github.com/onsi/ginkgo/v2"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import (
|
|||||||
"github.com/fsnotify/fsnotify"
|
"github.com/fsnotify/fsnotify"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/wg"
|
"cunicu.li/cunicu/pkg/wg"
|
||||||
)
|
)
|
||||||
|
|
||||||
func normalizeSocketName(name string) string {
|
func normalizeSocketName(name string) string {
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
package device
|
package device
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/stv0g/cunicu/pkg/link"
|
"cunicu.li/cunicu/pkg/link"
|
||||||
"github.com/stv0g/cunicu/pkg/wg"
|
"cunicu.li/cunicu/pkg/wg"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Device interface {
|
type Device interface {
|
||||||
|
|||||||
@@ -12,9 +12,9 @@ import (
|
|||||||
wgconn "golang.zx2c4.com/wireguard/conn"
|
wgconn "golang.zx2c4.com/wireguard/conn"
|
||||||
wgdevice "golang.zx2c4.com/wireguard/device"
|
wgdevice "golang.zx2c4.com/wireguard/device"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/link"
|
"cunicu.li/cunicu/pkg/link"
|
||||||
"github.com/stv0g/cunicu/pkg/log"
|
"cunicu.li/cunicu/pkg/log"
|
||||||
"github.com/stv0g/cunicu/pkg/wg"
|
"cunicu.li/cunicu/pkg/wg"
|
||||||
)
|
)
|
||||||
|
|
||||||
var errNotWireGuardLink = errors.New("link is not a WireGuard link")
|
var errNotWireGuardLink = errors.New("link is not a WireGuard link")
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ package device_test
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
osx "github.com/stv0g/cunicu/pkg/os"
|
osx "cunicu.li/cunicu/pkg/os"
|
||||||
"github.com/stv0g/cunicu/test"
|
"cunicu.li/cunicu/test"
|
||||||
|
|
||||||
. "github.com/onsi/ginkgo/v2"
|
. "github.com/onsi/ginkgo/v2"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
|
|||||||
@@ -14,9 +14,9 @@ import (
|
|||||||
"golang.zx2c4.com/wireguard/device"
|
"golang.zx2c4.com/wireguard/device"
|
||||||
"golang.zx2c4.com/wireguard/tun"
|
"golang.zx2c4.com/wireguard/tun"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/link"
|
"cunicu.li/cunicu/pkg/link"
|
||||||
"github.com/stv0g/cunicu/pkg/log"
|
"cunicu.li/cunicu/pkg/log"
|
||||||
"github.com/stv0g/cunicu/pkg/wg"
|
"cunicu.li/cunicu/pkg/wg"
|
||||||
)
|
)
|
||||||
|
|
||||||
//nolint:gochecknoglobals
|
//nolint:gochecknoglobals
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ package ice_test
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/test"
|
"cunicu.li/cunicu/test"
|
||||||
|
|
||||||
. "github.com/onsi/ginkgo/v2"
|
. "github.com/onsi/ginkgo/v2"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
|
|
||||||
"github.com/pion/ice/v2"
|
"github.com/pion/ice/v2"
|
||||||
|
|
||||||
"github.com/stv0g/cunicu/pkg/log"
|
"cunicu.li/cunicu/pkg/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
func NewMultiUDPMuxWithListen(listen func(ip net.IP) (net.PacketConn, error), interfaceFilter func(string) bool, ipFilter func(net.IP) bool, networkTypes []ice.NetworkType, includeLoopback bool, logger *log.Logger) (*ice.MultiUDPMuxDefault, error) {
|
func NewMultiUDPMuxWithListen(listen func(ip net.IP) (net.PacketConn, error), interfaceFilter func(string) bool, ipFilter func(net.IP) bool, networkTypes []ice.NetworkType, includeLoopback bool, logger *log.Logger) (*ice.MultiUDPMuxDefault, error) {
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user