Show
Ignore:
Timestamp:
10/15/08 09:12:35 (5 years ago)
Author:
tokuhirom
Message:

change loopback address

Location:
lang/cplusplus/llv8call/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lang/cplusplus/llv8call/trunk/lib/org/coderepos/test/tcp.js

    r21332 r21344  
    4646                var sock = new Socket(family); 
    4747                try { 
    48                     sock.connect([family == Socket.AF_INET ? '127.0.0.1' : 'fe80::1%lo0', port]); 
     48                    sock.connect([family == Socket.AF_INET ? '127.0.0.1' : '::1', port]); 
    4949                    sock.close(); 
    5050                    return true; 
  • lang/cplusplus/llv8call/trunk/t/100_socket/07_ipv6.js

    r21332 r21344  
    1111            like(port.toString(), /^\d+$/, "port is " + port); 
    1212            var sock = new Socket(Socket.AF_INET6); 
    13             sock.connect(['fe80::1%lo0', port]); 
     13            sock.connect(['::1', port]); 
    1414            sock.send("12345"); 
    1515            is(sock.recv(5), "12345"); 
     
    1818        "server" : function (port) { 
    1919            var sock = new Socket(Socket.AF_INET6); 
    20             sock.bind(['fe80::1%lo0', port]); 
     20            sock.bind(['::1', port]); 
    2121            sock.listen(5); 
    2222            var c;