validation

package
v0.90.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectPublicIP

func DetectPublicIP() string

DetectPublicIP attempts to detect the server's public IP address

func ValidateClusterSecret

func ValidateClusterSecret(secret string) error

ValidateClusterSecret validates a cluster secret (64 hex characters)

func ValidateDomain

func ValidateDomain(domain string) error

ValidateDomain validates a domain name

func ValidateIP

func ValidateIP(ip string) error

ValidateIP validates an IP address

func ValidateSNIDNSRecords

func ValidateSNIDNSRecords(domain string) string

ValidateSNIDNSRecords checks if the required SNI DNS records exist It tries to resolve the key SNI hostnames for IPFS, IPFS Cluster, and Olric Note: Raft no longer uses SNI - it uses direct RQLite TLS on port 7002 All should resolve to the same IP (the node's public IP or domain) Returns a warning string if records are missing (empty string if all OK)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL