mirror of
https://github.com/logos-storage/logos-storage-go-bindings.git
synced 2026-01-04 06:23:06 +00:00
one more NAT: none fix
This commit is contained in:
parent
a5fb5897fd
commit
59d9cc850e
@ -51,6 +51,7 @@ func TestConnectWithAddress(t *testing.T) {
|
|||||||
LogFormat: LogFormatNoColors,
|
LogFormat: LogFormatNoColors,
|
||||||
MetricsEnabled: false,
|
MetricsEnabled: false,
|
||||||
DiscoveryPort: 8091,
|
DiscoveryPort: 8091,
|
||||||
|
Nat: "none",
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("Failed to create codex2: %v", err)
|
t.Fatalf("Failed to create codex2: %v", err)
|
||||||
|
|||||||
@ -44,6 +44,10 @@ func newCodexNode(t *testing.T, opts ...Config) *CodexNode {
|
|||||||
config.DiscoveryPort = c.DiscoveryPort
|
config.DiscoveryPort = c.DiscoveryPort
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if c.Nat != "" {
|
||||||
|
config.Nat = c.Nat
|
||||||
|
}
|
||||||
|
|
||||||
if c.StorageQuota != 0 {
|
if c.StorageQuota != 0 {
|
||||||
config.StorageQuota = c.StorageQuota
|
config.StorageQuota = c.StorageQuota
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user