mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-09 20:29:23 +02:00
feat(protonvpn): port forwarding support with NAT-PMP (#1543)
Co-authored-by: Nicholas Xavier <nicho@nicho.dev>
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package natpmp
|
||||
|
||||
import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func Test_New(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
expectedClient := &Client{
|
||||
serverPort: 5351,
|
||||
initialRetry: 250 * time.Millisecond,
|
||||
maxRetries: 9,
|
||||
}
|
||||
client := New()
|
||||
assert.Equal(t, expectedClient, client)
|
||||
}
|
||||
Reference in New Issue
Block a user