Skip to content

Commit 31b31c1

Browse files
fix bug
1 parent 864e4fc commit 31b31c1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import socket
22
import hashlib
3+
import ast
34
from getpass import getpass
45

5-
connip = "192.168.0.101"
6+
connip = "192.168.0.102"
67
connport = 4000
78

89
c = socket.socket()
@@ -67,7 +68,7 @@
6768
print(" ")
6869
filelist = c.recv(4096)
6970
filelist = filelist.decode()
70-
filelist = eval(filelist)
71+
filelist = ast.literal_eval(filelist)
7172
for file in filelist:
7273
print(file)
7374
continue

0 commit comments

Comments
 (0)