tree: rework

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-08-05 12:25:34 +02:00
parent 6cc20a66e5
commit 7685e2adcf
7 changed files with 12 additions and 11 deletions

View File

@ -1,4 +1,4 @@
module github.com/benjaminbear/docker-ddns-server/dyndns module github.com/AuxXxilium/docker-ddns-server/dyndns
go 1.22 go 1.22

View File

@ -5,8 +5,8 @@ import (
"net/http" "net/http"
"strconv" "strconv"
"github.com/benjaminbear/docker-ddns-server/dyndns/model" "github.com/AuxXxilium/docker-ddns-server/dyndns/model"
"github.com/benjaminbear/docker-ddns-server/dyndns/nswrapper" "github.com/AuxXxilium/docker-ddns-server/dyndns/nswrapper"
"github.com/labstack/echo/v4" "github.com/labstack/echo/v4"
"gorm.io/gorm" "gorm.io/gorm"
) )

View File

@ -10,7 +10,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/benjaminbear/docker-ddns-server/dyndns/model" "github.com/AuxXxilium/docker-ddns-server/dyndns/model"
"github.com/go-playground/validator/v10" "github.com/go-playground/validator/v10"
"github.com/labstack/echo/v4" "github.com/labstack/echo/v4"
"github.com/tg123/go-htpasswd" "github.com/tg123/go-htpasswd"
@ -119,7 +119,7 @@ func (h *Handler) ParseEnvs() (adminAuth bool, err error) {
var ok bool var ok bool
h.Title, ok = os.LookupEnv("DDNS_TITLE") h.Title, ok = os.LookupEnv("DDNS_TITLE")
if !ok { if !ok {
h.Title = "TheBBCloud DynDNS" h.Title = "Arc DDNS Service"
} }
allowWildcard, ok := os.LookupEnv("DDNS_ALLOW_WILDCARD") allowWildcard, ok := os.LookupEnv("DDNS_ALLOW_WILDCARD")
if ok { if ok {

View File

@ -9,9 +9,9 @@ import (
l "github.com/labstack/gommon/log" l "github.com/labstack/gommon/log"
"github.com/benjaminbear/docker-ddns-server/dyndns/nswrapper" "github.com/AuxXxilium/docker-ddns-server/dyndns/nswrapper"
"github.com/benjaminbear/docker-ddns-server/dyndns/model" "github.com/AuxXxilium/docker-ddns-server/dyndns/model"
"github.com/labstack/echo/v4" "github.com/labstack/echo/v4"
"gorm.io/gorm" "gorm.io/gorm"
) )

View File

@ -6,7 +6,7 @@ import (
"strconv" "strconv"
"time" "time"
"github.com/benjaminbear/docker-ddns-server/dyndns/model" "github.com/AuxXxilium/docker-ddns-server/dyndns/model"
"github.com/labstack/echo/v4" "github.com/labstack/echo/v4"
) )

View File

@ -5,7 +5,7 @@ import (
"net/http" "net/http"
"time" "time"
"github.com/benjaminbear/docker-ddns-server/dyndns/handler" "github.com/AuxXxilium/docker-ddns-server/dyndns/handler"
"github.com/foolin/goview" "github.com/foolin/goview"
"github.com/foolin/goview/supports/echoview-v4" "github.com/foolin/goview/supports/echoview-v4"
"github.com/go-playground/validator/v10" "github.com/go-playground/validator/v10"

View File

@ -3,12 +3,13 @@ package nswrapper
import ( import (
"bytes" "bytes"
"errors" "errors"
"github.com/labstack/gommon/log"
"net" "net"
"net/http" "net/http"
"strings" "strings"
"github.com/benjaminbear/docker-ddns-server/dyndns/ipparser" "github.com/labstack/gommon/log"
"github.com/AuxXxilium/docker-ddns-server/dyndns/ipparser"
) )
// GetIPType finds out if the IP is IPv4 or IPv6 // GetIPType finds out if the IP is IPv4 or IPv6