I did a little experiment and it worked.
if (fnmatch("192.168.1.*",remote_host,FNM_PATHNAME) != 0)
goto out;
this will allow only connections from 192.168.1.* to the server
that shows the change can be very simple. I did not try with more complicated
situations. The
Walter Harms wrote in
:
|I did a little experiment and it worked.
|
| if (fnmatch("192.168.1.*",remote_host,FNM_PATHNAME) != 0)
| goto out;
|
|this will allow only connections from 192.168.1.* to the server
|that shows the change can be very simple. I did not try with more compli\
|c