Fixed relative path saving configs in wrong dir

This commit is contained in:
2026-03-08 20:17:24 +01:00
parent 45495f4b47
commit e806470b11
3 changed files with 53 additions and 20 deletions

View File

@@ -2,7 +2,6 @@ package client
import (
"context"
"flag"
"fmt"
"log"
"time"
@@ -13,13 +12,6 @@ import (
"google.golang.org/grpc/credentials/insecure"
)
var (
tls = flag.Bool("tls", false, "Connection uses TLS if true, else plain TCP")
caFile = flag.String("ca_file", "", "The file containing the CA root cert file")
serverAddr = flag.String("addr", "localhost:50051", "The server address in the format of host:port")
serverHostOverride = flag.String("server_host_override", "x.test.example.com", "The server name used to verify the hostname returned by the TLS handshake")
)
func SendHook(domain string) {
conn, err := grpc.NewClient(
"unix:///run/certman.sock",