Skip to content

Commit

Permalink
i/config: fix clients map
Browse files Browse the repository at this point in the history
  • Loading branch information
st3v3nmw committed Dec 15, 2024
1 parent 018a595 commit f340174
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ services:
container_name: beacon-dns
image: ghcr.io/st3v3nmw/beacon-dns:latest
volumes:
- ./config:/home/${USER}/beacon
- /home/${USER}/beacon-dns:/data
environment:
- BEACON_CONFIG_FILE=/home/${USER}/beacon/config.yml
- BEACON_DATA_DIR=/home/${USER}/beacon
- BEACON_CONFIG_FILE=/data/config.yml
- BEACON_DATA_DIR=/data
restart: unless-stopped
privileged: true
network_mode: host
3 changes: 1 addition & 2 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package config

import (
"fmt"
"net"
"os"
"slices"
"strconv"
Expand Down Expand Up @@ -189,7 +188,7 @@ type APIConfig struct {
type ClientLookupConfig struct {
Upstream string `yaml:"upstream" json:"upstream"`
Method types.ClientLookupMethod `yaml:"method" json:"method"`
Clients map[string]net.IP `yaml:"clients" json:"clients,omitempty"`
Clients map[string]string `yaml:"clients" json:"clients,omitempty"`
}

type GroupConfig struct {
Expand Down

0 comments on commit f340174

Please sign in to comment.