Add Fedora 9+ support, IPv6 support

This commit is contained in:
Jamie Cameron
2010-10-31 22:00:26 -07:00
parent e2f2199583
commit 8ae3d7a7f1
2 changed files with 3 additions and 2 deletions

View File

@@ -0,0 +1 @@
stunnel_path=/usr/bin/stunnel

View File

@@ -37,7 +37,7 @@ else {
$in{'tcpw'} =~ /^\S+$/ || &error($text{'save_etcpw'});
}
if (!$in{'iface_def'}) {
gethostbyname($in{'iface'}) || &check_ipaddress($in{'iface'}) ||
&to_ipaddress($in{'iface'}) || &to_ip6address($in{'iface'}) ||
&error($text{'save_eiface'});
}
if ($in{'mode'} == 0 || $in{'mode'} == 1) {
@@ -48,7 +48,7 @@ else {
}
else {
# Connecting to remote host and port
gethostbyname($in{'rhost'}) || &check_ipaddress($in{'rhost'}) ||
&to_ipaddress($in{'rhost'}) || &to_ip6address($in{'rhost'}) ||
&error($text{'save_erhost'});
$in{'rport'} =~ /^\d+$/ || &error($text{'save_erport'});
}