Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drop --sslv3 flag #42

Merged
merged 1 commit into from
Nov 3, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions updater.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ update_ip_address () {
ret=`curl --basic \
-u "$YDNS_USER:$YDNS_PASSWD" \
--silent \
--sslv3 \
https://ydns.io/api/v1/update/?host=${YDNS_HOST}\&ip=${current_ip}`

echo $ret
Expand Down Expand Up @@ -120,19 +119,19 @@ while getopts "hH:i:p:u:vV" opt; do
;;
esac
done

if [ "$local_interface_addr" != "" ]; then
# Retrieve current local IP address for a given interface

if hash ip 2>/dev/null; then
current_ip=$(ip addr | awk '/inet/ && /'${local_interface_addr}'/{sub(/\/.*$/,"",$2); print $2}')
fi
fi

if [ "$current_ip" = "" ]; then
# Retrieve current public IP address
current_ip=`curl --silent --sslv3 https://ydns.io/api/v1/ip`
current_ip=`curl --silent https://ydns.io/api/v1/ip`

if [ "$current_ip" = "" ]; then
write_msg "Error: Unable to retrieve current public IP address." 2
exit 92
Expand Down