@ -194,16 +194,16 @@ func testControlHTTP(t *testing.T, param httpTestParam) {
}
}
a := & Dialer {
a := & Dialer {
Hostname : "localhost" ,
Hostname : "localhost" ,
HTTPPort : strconv . Itoa ( httpLn . Addr ( ) . ( * net . TCPAddr ) . Port ) ,
HTTPPort : strconv . Itoa ( httpLn . Addr ( ) . ( * net . TCPAddr ) . Port ) ,
HTTPSPort : strconv . Itoa ( httpsLn . Addr ( ) . ( * net . TCPAddr ) . Port ) ,
HTTPSPort : strconv . Itoa ( httpsLn . Addr ( ) . ( * net . TCPAddr ) . Port ) ,
MachineKey : client ,
MachineKey : client ,
ControlKey : server . Public ( ) ,
ControlKey : server . Public ( ) ,
ProtocolVersion : testProtocolVersion ,
ProtocolVersion : testProtocolVersion ,
Dialer : new ( tsdial . Dialer ) . SystemDial ,
Dialer : new ( tsdial . Dialer ) . SystemDial ,
Logf : t . Logf ,
Logf : t . Logf ,
insecureTLS: true ,
omitCertErrorLogging: true ,
testFallbackDelay : 50 * time . Millisecond ,
testFallbackDelay : 50 * time . Millisecond ,
}
}
if proxy != nil {
if proxy != nil {
@ -646,19 +646,19 @@ func TestDialPlan(t *testing.T) {
drained := make ( chan struct { } )
drained := make ( chan struct { } )
a := & Dialer {
a := & Dialer {
Hostname : host ,
Hostname : host ,
HTTPPort : httpPort ,
HTTPPort : httpPort ,
HTTPSPort : httpsPort ,
HTTPSPort : httpsPort ,
MachineKey : client ,
MachineKey : client ,
ControlKey : server . Public ( ) ,
ControlKey : server . Public ( ) ,
ProtocolVersion : testProtocolVersion ,
ProtocolVersion : testProtocolVersion ,
Dialer : dialer . Dial ,
Dialer : dialer . Dial ,
Logf : t . Logf ,
Logf : t . Logf ,
DialPlan : tt . plan ,
DialPlan : tt . plan ,
proxyFunc : func ( * http . Request ) ( * url . URL , error ) { return nil , nil } ,
proxyFunc : func ( * http . Request ) ( * url . URL , error ) { return nil , nil } ,
drainFinished : drained ,
drainFinished : drained ,
insecureTLS: true ,
omitCertErrorLogging: true ,
testFallbackDelay : 50 * time . Millisecond ,
testFallbackDelay : 50 * time . Millisecond ,
}
}
conn , err := a . dial ( ctx )
conn , err := a . dial ( ctx )