mirror of
				https://github.com/MHSanaei/3x-ui.git
				synced 2025-10-27 02:24:40 +00:00 
			
		
		
		
	[bug] fix cloned inbound settings
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
This commit is contained in:
		
							parent
							
								
									e2de4b1f74
								
							
						
					
					
						commit
						fea549ffd9
					
				
					 1 changed files with 3 additions and 4 deletions
				
			
		|  | @ -495,7 +495,6 @@ | ||||||
|                 }); |                 }); | ||||||
|             }, |             }, | ||||||
|             async cloneInbound(baseInbound, dbInbound) { |             async cloneInbound(baseInbound, dbInbound) { | ||||||
|                 const inbound = new Inbound(); |  | ||||||
|                 const data = { |                 const data = { | ||||||
|                     up: dbInbound.up, |                     up: dbInbound.up, | ||||||
|                     down: dbInbound.down, |                     down: dbInbound.down, | ||||||
|  | @ -504,10 +503,10 @@ | ||||||
|                     enable: dbInbound.enable, |                     enable: dbInbound.enable, | ||||||
|                     expiryTime: dbInbound.expiryTime, |                     expiryTime: dbInbound.expiryTime, | ||||||
| 
 | 
 | ||||||
|                     listen: inbound.listen, |                     listen: '', | ||||||
|                     port: inbound.port, |                     port: RandomUtil.randomIntRange(10000, 60000), | ||||||
|                     protocol: baseInbound.protocol, |                     protocol: baseInbound.protocol, | ||||||
|                     settings: inbound.settings.toString(), |                     settings: Inbound.Settings.getSettings(baseInbound.protocol).toString(), | ||||||
|                     streamSettings: baseInbound.stream.toString(), |                     streamSettings: baseInbound.stream.toString(), | ||||||
|                     sniffing: baseInbound.canSniffing() ? baseInbound.sniffing.toString() : '{}', |                     sniffing: baseInbound.canSniffing() ? baseInbound.sniffing.toString() : '{}', | ||||||
|                 }; |                 }; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 MHSanaei
						MHSanaei