Skip to content

Commit ff19894

Browse files
committed
Fix: Allow SMITE_VERSION in node env and fix Rathole WS transmission display
- Add extra='ignore' to node Settings to ignore unknown env vars like SMITE_VERSION - Fix Rathole WS tunnels to display 'WS' instead of 'TCP' in transmission badge - Allows nodes to use SMITE_VERSION for image tag selection without validation errors
1 parent 929ba68 commit ff19894

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

frontend/src/pages/Tunnels.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ const Tunnels = () => {
376376
if (tunnel.core === 'chisel') {
377377
transmissionType = 'TCP'
378378
} else if (tunnel.core === 'rathole') {
379-
const transport = tunnel.spec?.transport || tunnel.spec?.type || 'tcp'
379+
const transport = tunnel.spec?.transport || (tunnel.type && tunnel.type !== 'rathole' ? tunnel.type : 'tcp')
380380
transmissionType = transport.toUpperCase()
381381
} else if (tunnel.type && tunnel.type.toLowerCase() !== tunnel.core.toLowerCase()) {
382382
transmissionType = tunnel.type.toUpperCase()

node/app/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class Settings(BaseSettings):
1515
class Config:
1616
env_file = ".env"
1717
case_sensitive = False
18+
extra = "ignore"
1819

1920

2021
settings = Settings()

0 commit comments

Comments
 (0)