Skip to content

Commit

Permalink
just changing to test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFJcurve committed Nov 8, 2024
1 parent e92212f commit 05d25c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions backend/P2PClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from pathlib import Path

from utils import get_filename_by_file_id
from config import DISCOVERY_PORT, CHAT_PORT, MAX_UDP_PACKET, IP
from config import DISCOVERY_PORT, CHAT_PORT, MAX_UDP_PACKET, DISCOVERY_ADDRESS


class P2PClient:
Expand Down Expand Up @@ -48,7 +48,7 @@ def announce_presence(self):
'user_id': self.user_id,
})
self.discovery_socket.sendto(
response.encode(), (IP, DISCOVERY_PORT))
response.encode(), (DISCOVERY_ADDRESS, DISCOVERY_PORT))
time.sleep(2)

def request_file_fingerprint(self, file_id):
Expand Down
2 changes: 1 addition & 1 deletion backend/config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
DISCOVERY_PORT = 5000
CHAT_PORT = 5001
MAX_UDP_PACKET = 65507
IP = '192.168.181.255'
DISCOVERY_ADDRESS = '192.168.181.255'

0 comments on commit 05d25c2

Please sign in to comment.