mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-12 07:38:32 +00:00
Redirect quic proxy @family to internal conn
This commit is contained in:
parent
e5f9a28b8c
commit
8cad76b2cf
@ -62,9 +62,11 @@ end
|
|||||||
|
|
||||||
class QuicProxyWrapper
|
class QuicProxyWrapper
|
||||||
property yt_headers : Hash(String, String)
|
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)
|
@conn = HTTP::Client.new(url)
|
||||||
@family = family
|
@family = Socket::Family::INET
|
||||||
header_retreival = HackyHeaderRetrevialClass.new
|
header_retreival = HackyHeaderRetrevialClass.new
|
||||||
add_yt_headers(header_retreival)
|
add_yt_headers(header_retreival)
|
||||||
|
|
||||||
@ -78,11 +80,12 @@ class QuicProxyWrapper
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
def family=(value)0
|
def family=(value)
|
||||||
|
@conn.family = value
|
||||||
end
|
end
|
||||||
|
|
||||||
def family
|
def family
|
||||||
return @family
|
return @conn.family
|
||||||
end
|
end
|
||||||
|
|
||||||
def close
|
def close
|
||||||
|
Loading…
Reference in New Issue
Block a user