diff --git a/app/src/main/java/com/wireguard/config/Interface.java b/app/src/main/java/com/wireguard/config/Interface.java index 99336ae4..6560b764 100644 --- a/app/src/main/java/com/wireguard/config/Interface.java +++ b/app/src/main/java/com/wireguard/config/Interface.java @@ -331,7 +331,7 @@ public class Interface { return publicKey; } - protected void loadData(final Interface parent) { + private void loadData(final Interface parent) { addresses = parent.getAddressString(); dnses = parent.getDnsString(); excludedApplications = parent.getExcludedApplicationsString(); diff --git a/app/src/main/java/com/wireguard/config/Peer.java b/app/src/main/java/com/wireguard/config/Peer.java index 60fe5c82..ee2c7de4 100644 --- a/app/src/main/java/com/wireguard/config/Peer.java +++ b/app/src/main/java/com/wireguard/config/Peer.java @@ -315,7 +315,7 @@ public class Peer { return publicKey; } - protected void loadData(final Peer parent) { + private void loadData(final Peer parent) { allowedIPs = parent.getAllowedIPsString(); endpoint = parent.getEndpointString(); persistentKeepalive = parent.getPersistentKeepaliveString();