SQLConnectQuery

Documentation Options SQLConnectQuery
Available in:moftpd 1.2b2-
Allowed in:<Server>
Inherited:yes
Arguments:string
Description: SQL query upon connect to a server.
If there's multiple matches the first line will be used. A zero row result will result in the connection being denied.
The result column names should be one of allow or lang (unknown columns are ignored, as are NULL values). The allow value should be a bool representing if the connection is allowed. The lang value should be the default language for the connection, in lower case. If the allow column is missing, the connection will be allowed.
%s is replaced by the server name.
%l is replaced by the (quoted) local ip. %L is replaced by the local port.
%r is replaced by the remote ip. %R is replaced by the remote port.
You can type \% to generate a % and \\ to generate a backslash.
Example:SQLConnectQuery "select allow,lang from ips where %r like remote"
See also:SQLConnect, SQLUserQuery
moftpd homepage