refactor #2
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: PolyculeConnect/polycule-network#2
Loading…
Reference in a new issue
No description provided.
Delete branch "refactor"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -0,0 +6,4 @@
class Peer:
public_key: str
endpoint: str | None
allowed_ips: str | None = None
Je sais pas si tu veux le faire ici, mais on pourra transformer ça en une
list[str]
après, ce sera plus simple à manipuler@ -0,0 +15,4 @@
allowed = [self.local_translated_range, wireguard_address]
if untranslated_networks != None:
allowed.append(untranslated_networks)
self.allowed_ips = ", ".join(allowed)
Oui voilà, ça je l'aurais fait dans le template, mais j'aurais gardé la liste pour le stockage dans l'objet
@ -0,0 +58,4 @@
default_dns: DNSServer | None = None
dns_servers: dict = {}
remote_networks: dict = {}
peers: array = []
je crois que c'est
list
plutot quearray
ici@ -0,0 +106,4 @@
)
def dns_server(self, qname):
# Guess which DNS server call from the requested domain name
Si tu veux faire une docstring pour la fonction (qui du coup est visible sur ton IDE ou avec un
help
, tu dois utiliser directement une string et non un commentaire.Du coup ici
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.