Commit 327216df authored by Nigel Kukard's avatar Nigel Kukard

Add an --ipv4 option

parent 255394a9
......@@ -99,6 +99,10 @@ C<awit-ssh> provides the below commandline options...
Enable debug output.
=head2 --ipv4
Use IPv4.
=head2 --forward-agent
Forward the ssh-agent socket.
......@@ -125,6 +129,8 @@ GetOptions(\%optctl,
"debug",
"ipv4",
# TODO: Improve globbing before adding it to displayHelp
"globbing",
......@@ -601,6 +607,11 @@ if (defined($optctl{'debug'})) {
push(@sshArgs,'-v');
}
# Use IPv4
if (defined($optctl{'ipv4'})) {
push(@sshArgs,'-4');
}
# Notify user we'll be forwarding his authentication agent
if (defined($optctl{'forward-agent'})) {
logger('NOTICE',color('red')."Forwarding authentication agent!".color('reset'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment