Skip to content

Commit

Permalink
fix: lacking default soMarkFromDae
Browse files Browse the repository at this point in the history
  • Loading branch information
kunish committed Sep 2, 2023
1 parent d23fc50 commit ee7c618
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/ConfigFormModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import {
DEFAULT_DIAL_MODE,
DEFAULT_DISABLE_WAITING_NETWORK,
DEFAULT_SNIFFING_TIMEOUT_MS,
DEFAULT_SO_MARK_FROM_DAE,
DEFAULT_TCP_CHECK_HTTP_METHOD,
DEFAULT_TCP_CHECK_URL,
DEFAULT_TLS_IMPLEMENTATION,
Expand Down Expand Up @@ -139,7 +140,7 @@ export const ConfigFormDrawer = forwardRef(({ opened, onClose }: { opened: boole
validate: zodResolver(schema),
initialValues: {
name: '',
soMarkFromDae: 0,
soMarkFromDae: DEFAULT_SO_MARK_FROM_DAE,
logLevelNumber: 2,
tproxyPort: DEFAULT_TPROXY_PORT,
tproxyPortProtect: DEFAULT_TPROXY_PORT_PROTECT,
Expand Down
2 changes: 2 additions & 0 deletions src/constants/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const DEFAULT_ENDPOINT_URL = `${location.protocol}//${location.hostname}:
export const DEFAULT_LOG_LEVEL = LogLevel.info
export const DEFAULT_TPROXY_PORT = 12345
export const DEFAULT_TPROXY_PORT_PROTECT = true
export const DEFAULT_SO_MARK_FROM_DAE = 0
export const DEFAULT_ALLOW_INSECURE = false
export const DEFAULT_CHECK_INTERVAL_SECONDS = 30
export const DEFAULT_CHECK_TOLERANCE_MS = 0
Expand All @@ -41,6 +42,7 @@ export const DEFAULT_CONFIG_WITH_LAN_INTERFACEs = (interfaces: string[] = []): G
logLevel: DEFAULT_LOG_LEVEL,
tproxyPort: DEFAULT_TPROXY_PORT,
tproxyPortProtect: DEFAULT_TPROXY_PORT_PROTECT,
soMarkFromDae: DEFAULT_SO_MARK_FROM_DAE,
allowInsecure: DEFAULT_ALLOW_INSECURE,
checkInterval: `${DEFAULT_CHECK_INTERVAL_SECONDS}s`,
checkTolerance: `${DEFAULT_CHECK_TOLERANCE_MS}ms`,
Expand Down

0 comments on commit ee7c618

Please sign in to comment.