Silently fall back to the guess the IP address with a remote server
Message ID | 1439338003-31606-1-git-send-email-michael.tremer@ipfire.org |
---|---|
State | Accepted |
Commit | 12dc74a8f9722a4fea2e5c23e46218006ef7dafd |
Headers |
Return-Path: <ddns-bounces@lists.ipfire.org> Received: from mail01.ipfire.org (mail01.tremer.info [172.28.1.200]) by septima.ipfire.org (Postfix) with ESMTP id 162076137F for <patchwork@ipfire.org>; Wed, 12 Aug 2015 02:07:12 +0200 (CEST) Received: from hedwig.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id F3C2D2C3; Wed, 12 Aug 2015 02:07:11 +0200 (CEST) Received: from hughes.tremer.info (105.140.114.87.dyn.plus.net [87.114.140.105]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 8103F2C3; Wed, 12 Aug 2015 02:07:09 +0200 (CEST) From: Michael Tremer <michael.tremer@ipfire.org> To: ddns@lists.ipfire.org Subject: [PATCH] Silently fall back to the guess the IP address with a remote server Date: Wed, 12 Aug 2015 01:06:43 +0100 Message-Id: <1439338003-31606-1-git-send-email-michael.tremer@ipfire.org> X-Mailer: git-send-email 2.4.3 X-BeenThere: ddns@lists.ipfire.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List for the IPFire dynamic DNS client <ddns.lists.ipfire.org> List-Unsubscribe: <http://lists.ipfire.org/mailman/options/ddns>, <mailto:ddns-request@lists.ipfire.org?subject=unsubscribe> List-Archive: <http://lists.ipfire.org/pipermail/ddns/> List-Post: <mailto:ddns@lists.ipfire.org> List-Help: <mailto:ddns-request@lists.ipfire.org?subject=help> List-Subscribe: <http://lists.ipfire.org/mailman/listinfo/ddns>, <mailto:ddns-request@lists.ipfire.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ddns-bounces@lists.ipfire.org Sender: "ddns" <ddns-bounces@lists.ipfire.org> |
Message
Michael Tremer
Aug. 12, 2015, 10:06 a.m. UTC
For most OSes we do not implement a way to read the current IP
address from the local configuration. In that case ddns used to
throw an exception and stop. This patch changes that in the way
that ddns will fall back to guess the IP address with help
of a remote server.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
src/ddns/system.py | 25 +++++++++++++++++--------
1 file changed, 17 insertions(+), 8 deletions(-)
Comments
Whats the reason for this not being merged, yet? -Michael