Skip to content

Commit b3fc041

Browse files
WillowSauceRWillowSauceR
authored andcommitted
use python3.10 at action
1 parent 4f77388 commit b3fc041

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717

1818
steps:
1919
- uses: actions/checkout@v3
20-
- name: Set up Python 3.7.9
20+
- name: Set up Python 3.10
2121
uses: actions/setup-python@v3
2222
with:
23-
python-version: "3.7.9"
23+
python-version: "3.10"
2424

2525
- name: Install dependencies
2626
run: |

requirements.txt

-50 Bytes
Binary file not shown.

scan.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,7 @@ def startThreads():
9898
log(f"Scaning target: {dstAddr}", info = "I")
9999
print()
100100
# sendPacket(portStart, portEnd, dstAddr)
101-
t1 = threading.Thread(target=sendPacket, args=(portStart, portEnd, dstAddr))
102-
t1.setDaemon(True)
101+
t1 = threading.Thread(target=sendPacket, args=(portStart, portEnd, dstAddr), daemon = True)
103102
t1.start()
104103
tmpServerCount = serverCount
105104
if timeout != 0:
@@ -120,8 +119,7 @@ def startThreads():
120119
os._exit(0)
121120

122121
if __name__ == "__main__":
123-
t = threading.Thread(target=startThreads)
124-
t.setDaemon(True)
122+
t = threading.Thread(target=startThreads, daemon = True)
125123
t.start()
126124

127125
bdsCount = 0

0 commit comments

Comments
 (0)