mirror of
				https://github.com/yuezk/GlobalProtect-openconnect.git
				synced 2025-05-20 07:26:58 -04:00 
			
		
		
		
	refactor: redact the gateway address
This commit is contained in:
		| @@ -1,6 +1,7 @@ | ||||
| import { atom } from "jotai"; | ||||
| import gatewayService from "../services/gatewayService"; | ||||
| import logger from "../utils/logger"; | ||||
| import { redact } from "../utils/redact"; | ||||
| import { isProcessingAtom, statusAtom } from "./status"; | ||||
| import { connectVpnAtom } from "./vpn"; | ||||
|  | ||||
| @@ -20,7 +21,7 @@ export const loginGatewayAtom = atom( | ||||
|     set(statusAtom, "gateway-login"); | ||||
|     let token: string; | ||||
|     try { | ||||
|       logger.info(`Logging in to gateway ${gateway}...`); | ||||
|       logger.info(`Logging in to gateway ${redact(gateway)}...`); | ||||
|       token = await gatewayService.login(gateway, credential); | ||||
|     } catch (err) { | ||||
|       throw new Error("Failed to login to gateway"); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user