one more NAT: none fix

This commit is contained in:
Marcin Czenko 2025-11-28 02:05:59 +01:00 committed by Arnaud
parent a5fb5897fd
commit 59d9cc850e
No known key found for this signature in database
GPG Key ID: 20E40A5D3110766F
2 changed files with 5 additions and 0 deletions

View File

@ -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)

View File

@ -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
} }