mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-26 13:11:53 +08:00
fix bug
This commit is contained in:
@@ -262,6 +262,7 @@ func Readfile(filename string) (string, error) {
|
||||
func readreply(conn net.Conn) (result string, err error) {
|
||||
buf := make([]byte, 4096)
|
||||
for {
|
||||
conn.SetReadDeadline(time.Now().Add(10 * time.Second))
|
||||
count, err := conn.Read(buf)
|
||||
if err != nil {
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user