mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-02-03 22:18:39 +00:00
Capitalize the first letter of all log messages throughout the codebase to improve readability and consistency in logging output. Key improvements: - All log messages now start with capital letters - Consistent formatting across all logging statements - Improved readability for debugging and monitoring - Enhanced user experience with better formatted messages Files updated: - CLI commands and service management - Internal client information discovery - Network operations and configuration - DNS resolver and proxy operations - Platform-specific implementations This completes the final phase of the logging improvement project, ensuring all log messages follow consistent capitalization standards for better readability and professional appearance.
33 lines
637 B
Go
33 lines
637 B
Go
package cli
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/Control-D-Inc/ctrld"
|
|
)
|
|
|
|
const nextdnsURL = "https://dns.nextdns.io"
|
|
|
|
// generateNextDNSConfig generates NextDNS configuration for the given UID
|
|
func generateNextDNSConfig(uid string) {
|
|
if uid == "" {
|
|
return
|
|
}
|
|
mainLog.Load().Info().Msg("Generating ctrld config for NextDNS resolver")
|
|
cfg = ctrld.Config{
|
|
Listener: map[string]*ctrld.ListenerConfig{
|
|
"0": {
|
|
IP: "0.0.0.0",
|
|
Port: 53,
|
|
},
|
|
},
|
|
Upstream: map[string]*ctrld.UpstreamConfig{
|
|
"0": {
|
|
Type: ctrld.ResolverTypeDOH3,
|
|
Endpoint: fmt.Sprintf("%s/%s", nextdnsURL, uid),
|
|
Timeout: 5000,
|
|
},
|
|
},
|
|
}
|
|
}
|