diff options
| author | Alexander Seiler <seileralex@gmail.com> | 2023-03-26 03:49:21 +0200 |
|---|---|---|
| committer | Oskar Nyberg <3668602+raksooo@users.noreply.github.com> | 2023-03-27 14:08:15 +0000 |
| commit | a7f820aedc61a7c1cc9e857b21dc45c8dcf20f93 (patch) | |
| tree | d440fa99e7bbb869a3b5c65fb0957380dd53c792 /gui/src/renderer/lib | |
| parent | ddbf915cd7377a2a7900e6b63fc035d1db1c83fc (diff) | |
| download | mullvadvpn-a7f820aedc61a7c1cc9e857b21dc45c8dcf20f93.tar.xz mullvadvpn-a7f820aedc61a7c1cc9e857b21dc45c8dcf20f93.zip | |
Fix many typos
Signed-off-by: Alexander Seiler <seileralex@gmail.com>
Diffstat (limited to 'gui/src/renderer/lib')
| -rw-r--r-- | gui/src/renderer/lib/ip.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/src/renderer/lib/ip.ts b/gui/src/renderer/lib/ip.ts index 369d66a479..2f68b68d78 100644 --- a/gui/src/renderer/lib/ip.ts +++ b/gui/src/renderer/lib/ip.ts @@ -25,7 +25,7 @@ export abstract class IpAddress<G extends number[]> { export abstract class IpRange<G extends number[]> { public constructor(public readonly groups: G, public readonly prefixSize: number) {} - // Returns whether or not this subnet includes the privided IP + // Returns whether or not this subnet includes the provided IP protected includes<T extends IpAddress<G>>(ip: T, groupSize: number): boolean { return IpRange.match(groupSize, ip.groups, [this.groups, this.prefixSize]); } @@ -159,7 +159,7 @@ export class IPv6Address extends IpAddress<IPv6Groups> { return localSubnets.some((subnet) => subnet.includes(this)); } - // Parses IPv6 addresses where the groups are seperated by ':' and supports shortened addresses. + // Parses IPv6 addresses where the groups are separated by ':' and supports shortened addresses. public static fromString(ip: string): IPv6Address { try { const groups = IPv6Address.groupsFromString(ip); |
