mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
update log
This commit is contained in:
@@ -2,7 +2,6 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net"
|
"net"
|
||||||
"os"
|
"os"
|
||||||
@@ -78,7 +77,7 @@ func main() {
|
|||||||
func dnsResolve() {
|
func dnsResolve() {
|
||||||
addrs, err := net.LookupHost("www.google.com")
|
addrs, err := net.LookupHost("www.google.com")
|
||||||
if len(addrs) == 0 {
|
if len(addrs) == 0 {
|
||||||
fmt.Println("Check dns", addrs, err)
|
log.TLogln("Check dns failed", addrs, err)
|
||||||
|
|
||||||
fn := func(ctx context.Context, network, address string) (net.Conn, error) {
|
fn := func(ctx context.Context, network, address string) (net.Conn, error) {
|
||||||
d := net.Dialer{}
|
d := net.Dialer{}
|
||||||
@@ -89,8 +88,8 @@ func dnsResolve() {
|
|||||||
Dial: fn,
|
Dial: fn,
|
||||||
}
|
}
|
||||||
|
|
||||||
addrs, err = net.LookupHost("www.themoviedb.org")
|
addrs, err = net.LookupHost("www.google.com")
|
||||||
fmt.Println("Check new dns", addrs, err)
|
log.TLogln("Check cloudflare dns", addrs, err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user