]> git.pld-linux.org Git - packages/dynix.git/commitdiff
- workaround for .dyn.ee domain
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 21 Nov 2004 11:46:18 +0000 (11:46 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dynix-dyn.ee.patch -> 1.1

dynix-dyn.ee.patch [new file with mode: 0644]

diff --git a/dynix-dyn.ee.patch b/dynix-dyn.ee.patch
new file mode 100644 (file)
index 0000000..74c50db
--- /dev/null
@@ -0,0 +1,15 @@
+--- dynix.c~   2004-11-21 12:29:57.000000000 +0200
++++ dynix.c    2004-11-21 12:29:59.000000000 +0200
+@@ -360,7 +360,11 @@
+ /* Note: if both bind()-s failed it will use the default local ip from the route table so no problemo */
+  if(soket != 0) {
+    dbgtxt("Connecting: inet_addr() ");
+-   buf = gethostbyname("www.dynserv.ca");
++       if (strcmp(usedomain, "dyn.ee") == 0) {
++         buf = gethostbyname("dyn.ee");
++       } else {
++         buf = gethostbyname("www.dynserv.ca");
++       }
+    if (buf) {
+     memcpy(&sckaddr.sin_addr,buf->h_addr_list[0],sizeof(struct in_addr));
+     dbgtxt("Connecting: htons()");
This page took 0.093175 seconds and 4 git commands to generate.