mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-12-23 09:55:39 +00:00
Remove debug lines
This commit is contained in:
parent
516fcce6b3
commit
423fc248d2
@ -3,7 +3,6 @@ package core
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"crypto/tls"
|
"crypto/tls"
|
||||||
"fmt"
|
|
||||||
"net"
|
"net"
|
||||||
"net/url"
|
"net/url"
|
||||||
"time"
|
"time"
|
||||||
@ -53,12 +52,10 @@ func (l *links) newLinkQUIC() *linkQUIC {
|
|||||||
func (l *linkQUIC) dial(url *url.URL, info linkInfo, options linkOptions) (net.Conn, error) {
|
func (l *linkQUIC) dial(url *url.URL, info linkInfo, options linkOptions) (net.Conn, error) {
|
||||||
qc, err := quic.DialAddrEarly(url.Host, l.tlsconfig, l.quicconfig)
|
qc, err := quic.DialAddrEarly(url.Host, l.tlsconfig, l.quicconfig)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("Dial error:", err)
|
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
qs, err := qc.OpenStream()
|
qs, err := qc.OpenStream()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("Stream error:", err)
|
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
return &linkQUICStream{
|
return &linkQUICStream{
|
||||||
|
Loading…
Reference in New Issue
Block a user