Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
CorralPeltzer committed Nov 24, 2024
1 parent c070bbb commit 98abc2e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion newTrackon/tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ def update_scheme_from_bep_34(self):
# Update tracker with the first protocol and URL set by TXT record
first_bep_34_protocol, first_bep_34_port = bep_34_info[0]
existing_scheme = parsed_url.scheme
new_scheme = "udp" if first_bep_34_protocol == "udp" else existing_scheme
new_scheme = (
"udp" if first_bep_34_protocol == "udp" else existing_scheme
)
self.url = parsed_url._replace(
scheme=new_scheme,
netloc=f"{parsed_url.hostname}:{first_bep_34_port}",
Expand Down

0 comments on commit 98abc2e

Please sign in to comment.