Copy Paste Error / Typo
Error Created in pasv() states EPSV rather than PASV
This commit is contained in:
		
							parent
							
								
									a9410e3e51
								
							
						
					
					
						commit
						9a62d18b47
					
				
							
								
								
									
										2
									
								
								ftp.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								ftp.go
									
									
									
									
									
								
							@ -185,7 +185,7 @@ func (c *ServerConn) pasv() (port int, err error) {
 | 
				
			|||||||
	start := strings.Index(line, "(")
 | 
						start := strings.Index(line, "(")
 | 
				
			||||||
	end := strings.LastIndex(line, ")")
 | 
						end := strings.LastIndex(line, ")")
 | 
				
			||||||
	if start == -1 || end == -1 {
 | 
						if start == -1 || end == -1 {
 | 
				
			||||||
		err = errors.New("Invalid EPSV response format")
 | 
							err = errors.New("Invalid PASV response format")
 | 
				
			||||||
		return
 | 
							return
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user