photoprism/pkg/clean/ip.go
Michael Mayer a921f82a17 Pkg: Move /service/http/... to /http/... and add package /http/dns
Signed-off-by: Michael Mayer <michael@photoprism.app>
2025-10-19 21:08:48 +02:00

10 lines
252 B
Go

package clean
import (
"github.com/photoprism/photoprism/pkg/http/header"
)
// IP returns the sanitized and normalized network address if it is valid, or the default otherwise.
func IP(s, defaultIp string) string {
return header.IP(s, defaultIp)
}