forked from mirrors/amnezia-wg-easy
		
	Fix onetimelink (#1367)
* Russian translation * fix onetime link for android tv --------- Co-authored-by: Vadim Babadzhanyan <vadim.babadzhanyan@my.games>
This commit is contained in:
		
							parent
							
								
									067b7bcf84
								
							
						
					
					
						commit
						33b4c3859d
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -321,8 +321,8 @@ Endpoint = ${WG_HOST}:${WG_CONFIG_PORT}`;
 | 
			
		|||
 | 
			
		||||
  async eraseOneTimeLink({ clientId }) {
 | 
			
		||||
    const client = await this.getClient({ clientId });
 | 
			
		||||
    client.oneTimeLink = null;
 | 
			
		||||
    client.oneTimeLinkExpiresAt = null;
 | 
			
		||||
    // client.oneTimeLink = null;
 | 
			
		||||
    client.oneTimeLinkExpiresAt = new Date(Date.now() + 10 * 1000);
 | 
			
		||||
    client.updatedAt = new Date();
 | 
			
		||||
    await this.saveConfig();
 | 
			
		||||
  }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue