fix(turndial): не переопределять PermissionRefreshInterval (дефолт pion)
This commit is contained in:
1 parent
43180f0362
commit
a0ea846f25
1 file changed
-3
@@ -18,8 +18,6 @@ import (
|
|||||||
"github.com/samosvalishe/free-turn-proxy/internal/netconn"
|
"github.com/samosvalishe/free-turn-proxy/internal/netconn"
|
||||||
)
|
)
|
||||||
|
|
||||||
const permissionRefreshInterval = 24 * time.Hour
|
|
||||||
|
|
||||||
// Config конфигурирует один вызов Open.
|
// Config конфигурирует один вызов Open.
|
||||||
type Config struct {
|
type Config struct {
|
||||||
// HostOverride, если непустой, заменяет host из lookup credentials.
|
// HostOverride, если непустой, заменяет host из lookup credentials.
|
||||||
@@ -113,7 +111,6 @@ func Open(ctx context.Context, cfg Config, peer *net.UDPAddr, user, pass, rawAdd
|
|||||||
Username: user,
|
Username: user,
|
||||||
Password: pass,
|
Password: pass,
|
||||||
RequestedAddressFamily: addrFamily,
|
RequestedAddressFamily: addrFamily,
|
||||||
PermissionRefreshInterval: permissionRefreshInterval,
|
|
||||||
LoggerFactory: logging.NewDefaultLoggerFactory(),
|
LoggerFactory: logging.NewDefaultLoggerFactory(),
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in new issue
Block a user