Displaying 1 result from an estimated 1 matches for "match_host_nam".
Did you mean:
match_host_name
2013 Mar 22
1
[PATCH] Allow matching HostName against Host entries
...uot;tunnel", oTunnel },
{ "tunneldevice", oTunnelDevice },
{ "localcommand", oLocalCommand },
@@ -823,7 +824,9 @@
negated = *arg == '!';
if (negated)
arg++;
- if (match_pattern(host, arg)) {
+ if (match_pattern(host, arg) ||
+ (options->match_host_name == 1 && &options->hostname != NULL &&
+ match_pattern(options->hostname, arg))) {
if (negated) {
debug("%.200s line %d: Skipping Host "
"block because of negated match "
@@ -970,6 +973,10 @@
intptr = &options->hash_...