>From f0e67b102c965dc1ab5e7389e61e3eec7b02054a Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Fri, 5 Aug 2011 16:09:08 +0200 Subject: [PATCH 2/3] HTTP: Conver SpIPAddress to String so it can be resolved This fixes putting a site on a specific ip address. 2011-08-05 Holger Freyther * HTTP.st: Fix response generation for websites available on a specific interface. Convert the SpIPAddress to a string so it can be resolved again without generating a DNU on substrings:. --- packages/swazoo-httpd/ChangeLog | 7 +++++++ packages/swazoo-httpd/HTTP.st | 2 +- 2 files changed, 8 insertions(+), 1 deletions(-) diff --git a/packages/swazoo-httpd/ChangeLog b/packages/swazoo-httpd/ChangeLog index 18f9765..c379098 100644 --- a/packages/swazoo-httpd/ChangeLog +++ b/packages/swazoo-httpd/ChangeLog @@ -1,3 +1,10 @@ +2011-08-05 Holger Freyther + + * HTTP.st: Fix response generation for websites + available on a specific interface. Convert the + SpIPAddress to a string so it can be resolved + again without generating a DNU on substrings:. + 2011-02-03 Paolo Bonzini * Extensions.st: Remove diff header. :/ diff --git a/packages/swazoo-httpd/HTTP.st b/packages/swazoo-httpd/HTTP.st index 32c9020..1f9f7b8 100644 --- a/packages/swazoo-httpd/HTTP.st +++ b/packages/swazoo-httpd/HTTP.st @@ -1760,7 +1760,7 @@ URIIdentifier subclass: SiteIdentifier [ ifTrue: [^true]. "is this always good?" myIP := SpIPAddress hostName: self ip port: self port. - otherIP := SpIPAddress hostName: aSiteIdentifier ip + otherIP := SpIPAddress hostName: aSiteIdentifier ip hostAddressString port: aSiteIdentifier port. ^myIP hostAddress = otherIP hostAddress ] -- 1.7.4.1