me-web? 0.6.0: provider notes from shared checks, and the internet seen from eight places
Build / Desktop, server and tools (push) Successful in 1m17s
Release / Every platform, the server, the release (push) Successful in 8m13s

- Notes on providers in any country: findings people choose to share are counted on the publisher's server, one
  vote per network. A total appears on the provider card only after a person has reviewed it, and only when at
  least five different networks of that provider agree four times in five; the card says how many agree.
  Notes researched by hand still come first, and on mobile data the totals for the mobile network replace the
  notes about home lines.
- "Connected to the internet through" now comes from eight RouteViews collectors (Oregon, Ashburn, London,
  Sao Paulo, Johannesburg, Dubai, Singapore, Sydney) instead of one in Oregon, each counting the same, so
  networks far from the United States are described from nearby. A network that only exchanges traffic with a
  collector's neighbour is no longer listed as one of its upstreams.
- Ready for measuring servers outside Europe: once the publisher adds one, the app times each server and runs
  the speed test and the test from outside against the closest. None exists yet, so nothing changes today.
- When me-web? has no notes on a provider, it says that findings shared at the end of a check help write them.
- The privacy page states the rule for publishing totals.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012CzABvBkbcFqoHdmi8b9WB
This commit is contained in:
thepraandClaude Opus 5.5 committed 2026-10-15 19:44:18 +02:00
1 parent c72a6be433
commit d18caed157
139 files changed
+1403 -287

No files matched your search

+5 -2
View File
@@ -26,6 +26,7 @@ public class RunReport
public DeviceReport DeviceReport { get; set; }
public CellularReport Cellular { get; set; }
public bool OwnNetwork { get; set; }
public Shared.MeasuringSite Site { get; set; }
public SpeedReport Speed { get; set; }
public List<UseFinding> Uses { get; set; } = [];
public HistorySummary History { get; set; }
@@ -65,6 +66,7 @@ public class CheckRunner(IPlatform platform, ServerProbe server, KnowledgeBase k
var online = server.Online(ct);
var v4 = server.Echo(false, ct);
var v6 = server.Echo(true, ct);
var site = SpeedCheck.Nearest(ct);
var route = Task.Run(async () =>
{
var target = await ServerProbe.ResolveV4(ct);
@@ -165,6 +167,7 @@ public class CheckRunner(IPlatform platform, ServerProbe server, KnowledgeBase k
var speed = Step(CheckId.Speed, async () =>
{
await Task.WhenAll(onlineDone, nat, behaviour, mail, names);
run.Site = await site;
if (run.Online?.State is not (OnlineState.Online or OnlineState.Rewritten))
{
Settle(new Finding { Id = CheckId.Speed, Outcome = Outcome.Unknown, Summary = "SpeedOffline" });
@@ -175,8 +178,8 @@ public class CheckRunner(IPlatform platform, ServerProbe server, KnowledgeBase k
Settle(new Finding { Id = CheckId.Speed, Outcome = Outcome.Unknown, Summary = "ReachOwnNetwork" });
return;
}
run.Speed = await SpeedCheck.Run(https, run.Local?.Active?.Kind ?? LinkKind.Unknown, ct);
Settle(Verdicts.Speed(run.Speed));
run.Speed = await SpeedCheck.Run(https, run.Local?.Active?.Kind ?? LinkKind.Unknown, run.Site, ct);
Settle(Verdicts.Speed(run.Speed, run.Site));
});
await Step(CheckId.History, async () =>
+2
View File
@@ -49,6 +49,8 @@ public class Fact
public string Currency { get; set; }
public string Link { get; set; }
public string Basis { get; set; }
public int? Agree { get; set; }
public int? Of { get; set; }
public string Date { get; set; }
}
+4 -4
View File
@@ -49,8 +49,8 @@ public class Reach(ServerProbe server, Leftovers leftovers)
var report = new ReachReport { Choice = choice };
if (choice == ReachChoice.Skip) return report;
var ticket4 = run.PublicV4 is null ? (null, null) : await server.Ticket(false, ct);
var ticket6 = run.PublicV6 is null ? (null, null) : await server.Ticket(true, ct);
var ticket4 = run.PublicV4 is null ? (null, null) : await server.Ticket(run.Site ?? Endpoints.Main, false, ct);
var ticket6 = run.PublicV6 is null ? (null, null) : await server.Ticket(run.Site ?? Endpoints.Main, true, ct);
report.V4Refusal = ticket4.Refusal?.Reason;
report.V6Refusal = ticket6.Refusal?.Reason;
report.RetryAfterSeconds = Math.Max(ticket4.Refusal?.RetryAfterSeconds ?? 0, ticket6.Refusal?.RetryAfterSeconds ?? 0);
@@ -92,8 +92,8 @@ public class Reach(ServerProbe server, Leftovers leftovers)
: [.. Wellknown, answerer.Port];
ports4 = ports4.Where(p => p is 80 or 443 or (>= 49152 and <= 65535)).Distinct().Take(3).ToList();
var knock4 = ticket4.Ticket is null ? Task.FromResult<(ViewProbe, ViewRefusal)>((null, null)) : server.Knock(false, ticket4.Ticket.Id, ports4, ct);
var knock6 = ticket6.Ticket is null ? Task.FromResult<(ViewProbe, ViewRefusal)>((null, null)) : server.Knock(true, ticket6.Ticket.Id, [answerer.Port], ct);
var knock4 = ticket4.Ticket is null ? Task.FromResult<(ViewProbe, ViewRefusal)>((null, null)) : server.Knock(run.Site ?? Endpoints.Main, false, ticket4.Ticket.Id, ports4, ct);
var knock6 = ticket6.Ticket is null ? Task.FromResult<(ViewProbe, ViewRefusal)>((null, null)) : server.Knock(run.Site ?? Endpoints.Main, true, ticket6.Ticket.Id, [answerer.Port], ct);
var (probe4, refusal4) = await knock4;
var (probe6, refusal6) = await knock6;
report.V4 = probe4;
+4 -4
View File
@@ -56,15 +56,15 @@ public class ServerProbe(HttpClient https, HttpClient plain)
}
}
public async Task<(ViewProbeTicket Ticket, ViewRefusal Refusal)> Ticket(bool v6, CancellationToken ct)
public async Task<(ViewProbeTicket Ticket, ViewRefusal Refusal)> Ticket(MeasuringSite site, bool v6, CancellationToken ct)
{
var origin = v6 ? Endpoints.BaseV6 : Endpoints.BaseV4;
var origin = v6 ? site.BaseV6 : site.BaseV4;
return await Send(HttpMethod.Post, origin + Endpoints.Probe.POST_Ticket, null, MeWebJsonContext.Default.ViewProbeTicket, ct);
}
public async Task<(ViewProbe Probe, ViewRefusal Refusal)> Knock(bool v6, string id, List<int> ports, CancellationToken ct)
public async Task<(ViewProbe Probe, ViewRefusal Refusal)> Knock(MeasuringSite site, bool v6, string id, List<int> ports, CancellationToken ct)
{
var origin = v6 ? Endpoints.BaseV6 : Endpoints.BaseV4;
var origin = v6 ? site.BaseV6 : site.BaseV4;
var form = JsonContent.Create(new ProbeForm { Ports = ports }, MeWebJsonContext.Default.ProbeForm);
return await Send(HttpMethod.Post, origin + Endpoints.Probe.POST_M_Run(id), form, MeWebJsonContext.Default.ViewProbe, ct, TimeSpan.FromSeconds(30));
}
+33 -24
View File
@@ -120,29 +120,29 @@ public static class Verdicts
return finding;
}
var profile = knowledge.ProviderFor(main.Number);
var observed = knowledge.ObservedFor(main.Number, mobile);
var hand = mobile && observed is not null ? null : profile;
finding.Outcome = Outcome.Info;
finding.Summary = profile is null ? "ProviderUnlisted" : mobile ? "ProviderListedMobile" : "ProviderListed";
finding.Summary = profile is null && observed is null ? "ProviderUnlisted" : mobile && observed is null ? "ProviderListedMobile" : "ProviderListed";
finding.Args = [profile?.Name ?? Display(main)];
finding.With("FactNetwork", Describe(main));
if (v6 is not null && v4 is not null && v6.Number != v4.Number) finding.With("FactNetworkIpv6", Describe(v6));
var upstreams = knowledge.NetworkFor(main.Number)?.Upstreams ?? [];
if (upstreams.Count > 0) finding.With("FactUpstreams", string.Join("\n", upstreams.Select(u => $"{knowledge.NameOf(u) ?? "AS" + u} (AS{u})")));
if (profile is null) return finding;
AddFact(finding, "FactProviderIpv4", "ProviderIpv4", profile.Ipv4);
var usual = profile.Ipv4?.Value is null ? null : Pascal(profile.Ipv4.Value);
if (hand is null && observed is null) return finding;
var usual = AddFact(finding, "FactProviderIpv4", "ProviderIpv4", hand?.Ipv4, observed?.Ipv4, observed?.To);
var sharedHere = run?.Nat is NatKind.Shared or NatKind.Translated;
var ownHere = run?.Nat is NatKind.HomeRouter or NatKind.Direct or NatKind.DoubleNat;
if ((usual is "Shared" or "SharedPorts" && ownHere) || (usual is "PublicDynamic" && sharedHere))
if ((usual is "Shared" or "SharedPorts" && ownHere) || (usual is "PublicDynamic" or "Public" && sharedHere))
finding.WithKey("FactThisLine", Holder(run.Nat));
AddFact(finding, "FactProviderPublic", "ProviderPublic", profile.PublicAddress);
AddFact(finding, "FactProviderIpv6", "ProviderIpv6", profile.Ipv6);
AddFact(finding, "FactProviderPort25", "ProviderPort25", profile.Port25);
var port25 = profile.Port25?.Value is null ? null : Pascal(profile.Port25.Value);
AddFact(finding, "FactProviderPublic", "ProviderPublic", hand?.PublicAddress, null, null);
AddFact(finding, "FactProviderIpv6", "ProviderIpv6", hand?.Ipv6, observed?.Ipv6, observed?.To);
var port25 = AddFact(finding, "FactProviderPort25", "ProviderPort25", hand?.Port25, observed?.Port25, observed?.To);
if (run?.Mail?.Port25 == Core.Mail.PortState.Open && port25 is "Blocked" or "BlockedOnRequest" or "Closed")
finding.WithKey("FactThisLine", "ValuePort25Open", run.Mail.Banner ?? "");
else if (run?.Mail?.Port25 == Core.Mail.PortState.Blocked && port25 is "Open")
finding.WithKey("FactThisLine", "ValuePort25Blocked");
if (profile.Sheet is not null) finding.Facts.Add(new Fact { Label = "FactProviderSheet", Key = "ValueOpenSheet", Link = profile.Sheet });
if (hand?.Sheet is not null) finding.Facts.Add(new Fact { Label = "FactProviderSheet", Key = "ValueOpenSheet", Link = hand.Sheet });
return finding;
}
@@ -313,7 +313,9 @@ public static class Verdicts
if (reach.V6 is null && reach.V6Refusal is not null) finding.WithKey("FactReachV6", "Refusal" + Pascal(reach.V6Refusal));
if (reach.Hairpin is not null) finding.WithKey("FactHairpin", reach.Hairpin == true ? "ValueHairpinYes" : "ValueHairpinNo");
var route = reach.V4?.Route ?? reach.V6?.Route ?? [];
if (route.Count > 0) finding.With("FactRouteBack", string.Join(" → ", route.Select(h => h.Name ?? h.Address ?? "*")));
var site = run?.Site ?? Endpoints.Main;
if (route.Count > 0) finding.With(site == Endpoints.Main ? "FactRouteBack" : "FactRouteBackNode", string.Join(" → ", route.Select(h => h.Name ?? h.Address ?? "*")));
if (Endpoints.Nodes.Count > 0) finding.With("FactMeasuredFrom", $"{site.Place} ({site.Host})");
if (reach.V4?.Ports.Any(p => p.Outcome == ProbeOutcome.OpenNotYou && p.Port is 80 or 443) == true && !mapped)
finding.WithKey("FactHint", "HintSomethingAnswers");
return finding;
@@ -390,7 +392,7 @@ public static class Verdicts
return finding;
}
public static Finding Speed(SpeedReport speed)
public static Finding Speed(SpeedReport speed, MeasuringSite site)
{
var finding = new Finding { Id = CheckId.Speed };
if (speed.Limited)
@@ -411,7 +413,8 @@ public static class Verdicts
finding.WithKey("FactDownload", "ValueMbpsDecimal", speed.DownMbps.ToString("0.#", CultureInfo.InvariantCulture));
finding.WithKey("FactUpload", "ValueMbpsDecimal", speed.UpMbps.ToString("0.#", CultureInfo.InvariantCulture));
finding.WithKey("FactSample", "ValueSample", (speed.DownBytes / 1048576).ToString(CultureInfo.InvariantCulture), (speed.UpBytes / 1048576).ToString(CultureInfo.InvariantCulture));
if (speed.RoundTripMs > 0) finding.WithKey("FactRoundTrip", "ValueMilliseconds", speed.RoundTripMs.ToString(CultureInfo.InvariantCulture));
if (speed.RoundTripMs > 0) finding.WithKey(site == Endpoints.Main ? "FactRoundTrip" : "FactRoundTripNode", "ValueMilliseconds", speed.RoundTripMs.ToString(CultureInfo.InvariantCulture));
if (Endpoints.Nodes.Count > 0) finding.With("FactMeasuredFrom", $"{site.Place} ({site.Host})");
return finding;
}
@@ -451,19 +454,25 @@ public static class Verdicts
return finding;
}
static void AddFact(Finding finding, string label, string prefix, ProviderFact fact)
static string AddFact(Finding finding, string label, string prefix, ProviderFact fact, ObservedFact seen, string month)
{
if (fact?.Value is null) return;
finding.Facts.Add(new Fact
if (fact?.Value is not null)
{
Label = label,
Key = prefix + Pascal(fact.Value),
Amount = fact.Price,
Currency = fact.Currency,
Link = fact.Source,
Basis = fact.Basis is null ? null : "Basis" + Pascal(fact.Basis),
Date = fact.Date,
});
finding.Facts.Add(new Fact
{
Label = label,
Key = prefix + Pascal(fact.Value),
Amount = fact.Price,
Currency = fact.Currency,
Link = fact.Source,
Basis = fact.Basis is null ? null : "Basis" + Pascal(fact.Basis),
Date = fact.Date,
});
return Pascal(fact.Value);
}
if (seen?.Value is null) return null;
finding.Facts.Add(new Fact { Label = label, Key = prefix + Pascal(seen.Value), Basis = "BasisChecks", Agree = seen.Agree, Of = seen.Of, Date = month });
return Pascal(seen.Value);
}
static string AnswerKey(Answer answer) => answer switch