IRemoteHostValidator
in
Validator for remote hosts
Tags
Table of Contents
Methods
- isValid() : bool
- Validate if a host may be connected to
Methods
isValid()
Validate if a host may be connected to
public
isValid(string $host) : bool
By default, Nextcloud does not connect to any local servers. That is neither localhost nor any host in the local network.
Admins can overwrite this behavior with the global allow_local_remote_servers
settings flag. If the flag is set to true
, local hosts will be considered
valid.
Parameters
- $host : string
-
hostname of the remote server, IPv4 or IPv6 address