Redirect quic proxy @family to internal conn

This commit is contained in:
syeopite 2021-05-23 06:13:23 -07:00
parent e5f9a28b8c
commit 8cad76b2cf
No known key found for this signature in database
GPG Key ID: 6FA616E5A5294A82

View File

@ -62,9 +62,11 @@ end
class QuicProxyWrapper
property yt_headers : Hash(String, String)
def initialize(url : URI, family : Socket::Family = Socket::Family::UNSPEC)
property family : Socket::Family
def initialize(url : URI)
@conn = HTTP::Client.new(url)
@family = family
@family = Socket::Family::INET
header_retreival = HackyHeaderRetrevialClass.new
add_yt_headers(header_retreival)
@ -78,11 +80,12 @@ class QuicProxyWrapper
end
def family=(value)0
def family=(value)
@conn.family = value
end
def family
return @family
return @conn.family
end
def close