mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
11 lines
252 B
Go
11 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)
|
|
}
|