appended .local to dns name

This commit is contained in:
JackTheRooster 2025-03-05 12:55:31 -06:00
parent 39853988ed
commit 326fac1d06
1 changed files with 2 additions and 2 deletions

View File

@ -5,6 +5,7 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/gosimple/slug"
"log"
"os"
"os/exec"
@ -13,7 +14,6 @@ import (
"strconv"
"time"
"github.com/gosimple/slug"
"github.com/pion/webrtc/v4"
"go.bug.st/serial"
)
@ -308,7 +308,7 @@ func rpcSetNameConfig(deviceName string) (NameConfig, error) {
LoadConfig()
config.NameConfig = NameConfig{
Name: deviceName,
DNS: slug.Make(deviceName),
DNS: slug.Make(deviceName) + ".local",
}
RestartMDNS()