mirror of
				https://github.com/MHSanaei/3x-ui.git
				synced 2025-10-31 04:12:51 +00:00 
			
		
		
		
	bug fixed (extra enter on client_email)
This commit is contained in:
		
							parent
							
								
									f56dd43999
								
							
						
					
					
						commit
						e2fd84a6ae
					
				
					 1 changed files with 5 additions and 3 deletions
				
			
		|  | @ -159,10 +159,12 @@ func addInboundClientIps(clientEmail string,ips []string) error { | ||||||
| 	jsonIps, err := json.Marshal(ips) | 	jsonIps, err := json.Marshal(ips) | ||||||
| 	checkError(err) | 	checkError(err) | ||||||
| 
 | 
 | ||||||
|  | 	// Trim any leading/trailing whitespace from clientEmail
 | ||||||
|  | 	clientEmail = strings.TrimSpace(clientEmail) | ||||||
|  | 
 | ||||||
| 	inboundClientIps.ClientEmail = clientEmail | 	inboundClientIps.ClientEmail = clientEmail | ||||||
| 	inboundClientIps.Ips = string(jsonIps) | 	inboundClientIps.Ips = string(jsonIps) | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| 	db := database.GetDB() | 	db := database.GetDB() | ||||||
| 	tx := db.Begin() | 	tx := db.Begin() | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 MHSanaei
						MHSanaei