Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jark006 committed Oct 13, 2024
1 parent 2e5c8aa commit dcd5e32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ build
dist
*.spec
env
venv
FtpServer.json
__pycache__
mypyftpdlib/__pycache__
Expand Down
7 changes: 3 additions & 4 deletions ftpServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@
from mypyftpdlib.authorizers import DummyAuthorizer
from mypyftpdlib.handlers import FTPHandler
from mypyftpdlib.servers import ThreadedFTPServer
from mypyftpdlib.log import logger

from PIL import ImageTk, Image
from io import BytesIO

import win32clipboard
import win32con

# pip install Pillow pypiwin32 pyinstaller nuitka
# pip install Pillow pypiwin32 pyinstaller nuitka pystray

# 打包 单文件 隐藏终端窗口
# pyinstaller.exe -F -w .\ftpServer.py -i .\ftpServer.ico
Expand Down Expand Up @@ -173,7 +172,7 @@ def startServer():
if isFTP_V4Running:
print("[FTP ipv4]正在运行")
else:
serverThread = threading.Thread(target=startServer)
serverThread = threading.Thread(target=startServerV4)
serverThread.start()

if isSupportdIPV6:
Expand All @@ -195,7 +194,7 @@ def startServer():
)


def startServer():
def startServerV4():
global server
global isFTP_V4Running
global v4port
Expand Down

0 comments on commit dcd5e32

Please sign in to comment.