diff --git a/vendor/github.com/nats-io/jwt/v2/account_claims.go b/vendor/github.com/nats-io/jwt/v2/account_claims.go index d143bee5d73..9da374aed04 100644 --- a/vendor/github.com/nats-io/jwt/v2/account_claims.go +++ b/vendor/github.com/nats-io/jwt/v2/account_claims.go @@ -152,22 +152,19 @@ type Mapping map[Subject][]WeightedMapping func (m *Mapping) Validate(vr *ValidationResults) { for ubFrom, wm := range (map[Subject][]WeightedMapping)(*m) { ubFrom.Validate(vr) - perCluster := make(map[string]uint32) - total := uint32(0) + perCluster := make(map[string]uint8) + total := uint8(0) for _, e := range wm { e.Subject.Validate(vr) - if e.GetWeight() > 100 { - vr.AddError("Mapping %q has a weight %d that exceeds 100", ubFrom, e.GetWeight()) - } if e.Cluster != "" { t := perCluster[e.Cluster] - t += uint32(e.GetWeight()) + t += e.Weight perCluster[e.Cluster] = t if t > 100 { vr.AddError("Mapping %q in cluster %q exceeds 100%% among all of it's weighted to mappings", ubFrom, e.Cluster) } } else { - total += uint32(e.GetWeight()) + total += e.GetWeight() } } if total > 100 { @@ -289,7 +286,7 @@ func (a *Account) Validate(acct *AccountClaims, vr *ValidationResults) { tvr := CreateValidationResults() a.Trace.Destination.Validate(tvr) if !tvr.IsEmpty() { - vr.AddError("the account Trace.Destination %s", tvr.Issues[0].Description) + vr.AddError(fmt.Sprintf("the account Trace.Destination %s", tvr.Issues[0].Description)) } if a.Trace.Destination.HasWildCards() { vr.AddError("the account Trace.Destination subject %q is not a valid publish subject", a.Trace.Destination) @@ -328,7 +325,7 @@ func (a *Account) Validate(acct *AccountClaims, vr *ValidationResults) { a.Info.Validate(vr) if err := a.ClusterTraffic.Valid(); err != nil { - vr.AddError("%s", err.Error()) + vr.AddError(err.Error()) } } diff --git a/vendor/github.com/nats-io/jwt/v2/creds_utils.go b/vendor/github.com/nats-io/jwt/v2/creds_utils.go index 726b3299b9a..eade49d63fa 100644 --- a/vendor/github.com/nats-io/jwt/v2/creds_utils.go +++ b/vendor/github.com/nats-io/jwt/v2/creds_utils.go @@ -63,9 +63,6 @@ func formatJwt(kind string, jwtString string) ([]byte, error) { func DecorateSeed(seed []byte) ([]byte, error) { w := bytes.NewBuffer(nil) ts := bytes.TrimSpace(seed) - if len(ts) < 2 { - return nil, errors.New("seed is too short") - } pre := string(ts[0:2]) kind := "" switch pre { @@ -141,18 +138,6 @@ func FormatUserConfig(jwtString string, seed []byte) ([]byte, error) { return nil, fmt.Errorf("nkey seed is not an user seed") } - kp, err := nkeys.FromSeed(seed) - if err != nil { - return nil, err - } - pk, err := kp.PublicKey() - if err != nil { - return nil, err - } - if pk != gc.Claims().Subject { - return nil, fmt.Errorf("nkey seed does not match the jwt subject") - } - d, err := DecorateSeed(seed) if err != nil { return nil, err diff --git a/vendor/github.com/nats-io/jwt/v2/decoder.go b/vendor/github.com/nats-io/jwt/v2/decoder.go index 3a10ee2157e..1e043a384d3 100644 --- a/vendor/github.com/nats-io/jwt/v2/decoder.go +++ b/vendor/github.com/nats-io/jwt/v2/decoder.go @@ -26,12 +26,6 @@ import ( const libVersion = 2 -// MaxTokenSize is the maximum size of a JWT token in bytes -const MaxTokenSize = 1024 * 1024 // 1MB - -// ErrTokenTooLarge is returned when a token exceeds MaxTokenSize -var ErrTokenTooLarge = errors.New("token too large") - type identifier struct { Type ClaimType `json:"type,omitempty"` GenericFields `json:"nats,omitempty"` @@ -62,9 +56,6 @@ type v1ClaimsDataDeletedFields struct { // doesn't match the expected algorithm, or the claim is // not valid or verification fails an error is returned. func Decode(token string) (Claims, error) { - if len(token) > MaxTokenSize { - return nil, fmt.Errorf("token size %d exceeds maximum of %d bytes: %w", len(token), MaxTokenSize, ErrTokenTooLarge) - } // must have 3 chunks chunks := strings.Split(token, ".") if len(chunks) != 3 { diff --git a/vendor/github.com/nats-io/jwt/v2/imports.go b/vendor/github.com/nats-io/jwt/v2/imports.go index 1fe52cdf0bb..c8524d07795 100644 --- a/vendor/github.com/nats-io/jwt/v2/imports.go +++ b/vendor/github.com/nats-io/jwt/v2/imports.go @@ -126,8 +126,7 @@ type Imports []*Import // Validate checks if an import is valid for the wrapping account func (i *Imports) Validate(acctPubKey string, vr *ValidationResults) { - // Group subjects by account to check for overlaps only within the same account - subsByAcct := make(map[string]map[Subject]struct{}, len(*i)) + toSet := make(map[Subject]struct{}, len(*i)) for _, v := range *i { if v == nil { vr.AddError("null import is not allowed") @@ -141,19 +140,15 @@ func (i *Imports) Validate(acctPubKey string, vr *ValidationResults) { if sub == "" { sub = v.Subject } - // Check for overlapping subjects only within the same account - for subOther := range subsByAcct[v.Account] { - if sub.IsContainedIn(subOther) || subOther.IsContainedIn(sub) { - vr.AddError("overlapping subject namespace for %q and %q in same account %q", sub, subOther, v.Account) + for k := range toSet { + if sub.IsContainedIn(k) || k.IsContainedIn(sub) { + vr.AddError("overlapping subject namespace for %q and %q", sub, k) } } - if subsByAcct[v.Account] == nil { - subsByAcct[v.Account] = make(map[Subject]struct{}, len(*i)) + if _, ok := toSet[sub]; ok { + vr.AddError("overlapping subject namespace for %q", v.To) } - if _, ok := subsByAcct[v.Account][sub]; ok { - vr.AddError("overlapping subject namespace for %q in account %q", sub, v.Account) - } - subsByAcct[v.Account][sub] = struct{}{} + toSet[sub] = struct{}{} } v.Validate(acctPubKey, vr) } diff --git a/vendor/github.com/nats-io/jwt/v2/operator_claims.go b/vendor/github.com/nats-io/jwt/v2/operator_claims.go index 12432f65f88..b5c9c94c329 100644 --- a/vendor/github.com/nats-io/jwt/v2/operator_claims.go +++ b/vendor/github.com/nats-io/jwt/v2/operator_claims.go @@ -71,12 +71,12 @@ func ParseServerVersion(version string) (int, int, int, error) { // Validate checks the validity of the operators contents func (o *Operator) Validate(vr *ValidationResults) { if err := o.validateAccountServerURL(); err != nil { - vr.AddError("%s", err.Error()) + vr.AddError(err.Error()) } for _, v := range o.validateOperatorServiceURLs() { if v != nil { - vr.AddError("%s", v.Error()) + vr.AddError(v.Error()) } } diff --git a/vendor/github.com/nats-io/nats-server/v2/conf/parse.go b/vendor/github.com/nats-io/nats-server/v2/conf/parse.go index 8229e402a76..b94c539f064 100644 --- a/vendor/github.com/nats-io/nats-server/v2/conf/parse.go +++ b/vendor/github.com/nats-io/nats-server/v2/conf/parse.go @@ -114,28 +114,42 @@ func ParseFileWithChecks(fp string) (map[string]any, error) { return p.mapping, nil } -// configDigest returns a digest for the parsed config. -func configDigest(m map[string]any) (string, error) { - digest := sha256.New() - e := json.NewEncoder(digest) - if err := e.Encode(m); err != nil { - return _EMPTY_, err +// cleanupUsedEnvVars will recursively remove all already used +// environment variables which might be in the parsed tree. +func cleanupUsedEnvVars(m map[string]any) { + for k, v := range m { + t := v.(*token) + if t.usedVariable { + delete(m, k) + continue + } + // Cleanup any other env var that is still in the map. + if tm, ok := t.value.(map[string]any); ok { + cleanupUsedEnvVars(tm) + } } - return fmt.Sprintf("sha256:%x", digest.Sum(nil)), nil } // ParseFileWithChecksDigest returns the processed config and a digest // that represents the configuration. func ParseFileWithChecksDigest(fp string) (map[string]any, string, error) { - m, err := ParseFileWithChecks(fp) + data, err := os.ReadFile(fp) if err != nil { return nil, _EMPTY_, err } - digest, err := configDigest(m) + p, err := parse(string(data), fp, true) if err != nil { return nil, _EMPTY_, err } - return m, digest, nil + // Filter out any environment variables before taking the digest. + cleanupUsedEnvVars(p.mapping) + digest := sha256.New() + e := json.NewEncoder(digest) + err = e.Encode(p.mapping) + if err != nil { + return nil, _EMPTY_, err + } + return p.mapping, fmt.Sprintf("sha256:%x", digest.Sum(nil)), nil } type token struct { diff --git a/vendor/github.com/nats-io/nats-server/v2/internal/ldap/dn.go b/vendor/github.com/nats-io/nats-server/v2/internal/ldap/dn.go index e155ad485d3..878ffbca498 100644 --- a/vendor/github.com/nats-io/nats-server/v2/internal/ldap/dn.go +++ b/vendor/github.com/nats-io/nats-server/v2/internal/ldap/dn.go @@ -235,19 +235,19 @@ func (d *DN) RDNsMatch(other *DN) bool { if len(d.RDNs) != len(other.RDNs) { return false } - matched := make([]bool, len(other.RDNs)) + +CheckNextRDN: for _, irdn := range d.RDNs { - found := false - for j, ordn := range other.RDNs { - if !matched[j] && irdn.Equal(ordn) { - matched[j] = true - found = true - break + for _, ordn := range other.RDNs { + if (len(irdn.Attributes) == len(ordn.Attributes)) && + (irdn.hasAllAttributes(ordn.Attributes) && ordn.hasAllAttributes(irdn.Attributes)) { + // Found the RDN, check if next one matches. + continue CheckNextRDN } } - if !found { - return false - } + + // Could not find a matching individual RDN, auth fails. + return false } return true } diff --git a/vendor/github.com/nats-io/nats-server/v2/server/accounts.go b/vendor/github.com/nats-io/nats-server/v2/server/accounts.go index 225f92e726d..a08df213ff6 100644 --- a/vendor/github.com/nats-io/nats-server/v2/server/accounts.go +++ b/vendor/github.com/nats-io/nats-server/v2/server/accounts.go @@ -1616,12 +1616,10 @@ func (a *Account) checkServiceImportsForCycles(from string, visited map[string]b } // Push ourselves and check si.acc visited[a.Name] = true - // Make a copy to not overwrite the passed value. - f := from - if subjectIsSubsetMatch(si.from, f) { - f = si.from + if subjectIsSubsetMatch(si.from, from) { + from = si.from } - if err := si.acc.checkServiceImportsForCycles(f, visited); err != nil { + if err := si.acc.checkServiceImportsForCycles(from, visited); err != nil { return err } a.mu.RLock() @@ -1676,12 +1674,10 @@ func (a *Account) checkStreamImportsForCycles(to string, visited map[string]bool } // Push ourselves and check si.acc visited[a.Name] = true - // Make a copy to not overwrite the passed value. - t := to - if subjectIsSubsetMatch(si.to, t) { - t = si.to + if subjectIsSubsetMatch(si.to, to) { + to = si.to } - if err := si.acc.checkStreamImportsForCycles(t, visited); err != nil { + if err := si.acc.checkStreamImportsForCycles(to, visited); err != nil { return err } a.mu.RLock() diff --git a/vendor/github.com/nats-io/nats-server/v2/server/auth.go b/vendor/github.com/nats-io/nats-server/v2/server/auth.go index b8cf69783ae..6639bdcca16 100644 --- a/vendor/github.com/nats-io/nats-server/v2/server/auth.go +++ b/vendor/github.com/nats-io/nats-server/v2/server/auth.go @@ -604,7 +604,6 @@ func processUserPermissionsTemplate(lim jwt.UserPermissionLimits, ujwt *jwt.User func (s *Server) processClientOrLeafAuthentication(c *client, opts *Options) (authorized bool) { var ( nkey *NkeyUser - ujwt string juc *jwt.UserClaims acc *Account user *User @@ -799,23 +798,16 @@ func (s *Server) processClientOrLeafAuthentication(c *client, opts *Options) (au // Check if we have trustedKeys defined in the server. If so we require a user jwt. if s.trustedKeys != nil { - ujwt = c.opts.JWT - if ujwt == _EMPTY_ && c.isMqtt() { - // For MQTT, we pass the password as the JWT too, but do so here so it's not - // publicly exposed in the client options if it isn't a JWT. - ujwt = c.opts.Password - } - if ujwt == _EMPTY_ && opts.DefaultSentinel != _EMPTY_ { + if c.opts.JWT == _EMPTY_ && opts.DefaultSentinel != _EMPTY_ { c.opts.JWT = opts.DefaultSentinel - ujwt = c.opts.JWT } - if ujwt == _EMPTY_ { + if c.opts.JWT == _EMPTY_ { s.mu.Unlock() c.Debugf("Authentication requires a user JWT") return false } // So we have a valid user jwt here. - juc, err = jwt.DecodeUserClaims(ujwt) + juc, err = jwt.DecodeUserClaims(c.opts.JWT) if err != nil { s.mu.Unlock() c.Debugf("User JWT not valid: %v", err) @@ -1085,11 +1077,6 @@ func (s *Server) processClientOrLeafAuthentication(c *client, opts *Options) (au // Hold onto the user's public key. c.mu.Lock() c.pubKey = juc.Subject - // If this is a MQTT client, we purposefully didn't populate the JWT as it could contain - // a password or token. Now we know it's a valid JWT, we can populate it. - if c.isMqtt() { - c.opts.JWT = ujwt - } c.tags = juc.Tags c.nameTag = juc.Name c.mu.Unlock() diff --git a/vendor/github.com/nats-io/nats-server/v2/server/auth_callout.go b/vendor/github.com/nats-io/nats-server/v2/server/auth_callout.go index df903b3f259..4797072dbd5 100644 --- a/vendor/github.com/nats-io/nats-server/v2/server/auth_callout.go +++ b/vendor/github.com/nats-io/nats-server/v2/server/auth_callout.go @@ -81,6 +81,9 @@ func (s *Server) processClientOrLeafCallout(c *client, opts *Options, proxyRequi xkp, xkey = s.xkp, s.info.XKey } + // FIXME: so things like the server ID that get assigned, are used as a sort of nonce - but + // reality is that the keypair here, is generated, so the response generated a JWT has to be + // this user - no replay possible // Create a keypair for the user. We will expect this public user to be in the signed response. // This prevents replay attacks. ukp, _ := nkeys.CreateUser() diff --git a/vendor/github.com/nats-io/nats-server/v2/server/client.go b/vendor/github.com/nats-io/nats-server/v2/server/client.go index 0abfd218006..0297dcf820f 100644 --- a/vendor/github.com/nats-io/nats-server/v2/server/client.go +++ b/vendor/github.com/nats-io/nats-server/v2/server/client.go @@ -153,6 +153,7 @@ const ( compressionNegotiated // Marks if this connection has negotiated compression level with remote. didTLSFirst // Marks if this connection requested and was accepted doing the TLS handshake first (prior to INFO). isSlowConsumer // Marks connection as a slow consumer. + firstPong // Marks if this is the first PONG received ) // set the flag (would be equivalent to set the boolean to true) @@ -868,11 +869,6 @@ func (c *client) registerWithAccount(acc *Account) error { } c.mu.Lock() - // This check does not apply to SYSTEM or JETSTREAM or ACCOUNT clients (because they don't have a `nc`...) - if c.isClosed() && !isInternalClient(c.kind) { - c.mu.Unlock() - return ErrConnectionClosed - } kind := c.kind srv := c.srv c.acc = acc @@ -1357,13 +1353,6 @@ func (c *client) flushClients(budget time.Duration) time.Time { return last } -func (c *client) resetReadLoopStallTime() { - if c.in.tst >= stallClientMaxDuration { - c.rateLimitFormatWarnf("Producer was stalled for a total of %v", c.in.tst.Round(time.Millisecond)) - } - c.in.tst = 0 -} - // readLoop is the main socket read functionality. // Runs in its own Go routine. func (c *client) readLoop(pre []byte) { @@ -1441,6 +1430,21 @@ func (c *client) readLoop(pre []byte) { return } } + if ws { + bufs, err = c.wsRead(wsr, reader, b[:n]) + if bufs == nil && err != nil { + if err != io.EOF { + c.Errorf("read error: %v", err) + } + c.closeConnection(closedStateForErr(err)) + return + } else if bufs == nil { + continue + } + } else { + bufs[0] = b[:n] + } + // Check if the account has mappings and if so set the local readcache flag. // We check here to make sure any changes such as config reload are reflected here. if c.kind == CLIENT || c.kind == LEAF { @@ -1458,32 +1462,17 @@ func (c *client) readLoop(pre []byte) { c.in.bytes = 0 c.in.subs = 0 - if ws { - err = c.wsReadAndParse(wsr, reader, b[:n]) - if err != nil { - // Match the normal parse path: any already-buffered deliveries - // need their pending flush signals drained before we close. - c.flushClients(0) - if err != io.EOF { - c.Errorf("read error: %v", err) - } - c.closeConnection(closedStateForErr(err)) - return - } - c.resetReadLoopStallTime() - goto postParse - } else { - bufs[0] = b[:n] - } - // Main call into parser for inbound data. This will generate callouts // to process messages, etc. for i := 0; i < len(bufs); i++ { if err := c.parse(bufs[i]); err != nil { if err == ErrMinimumVersionRequired { // Special case here, currently only for leaf node connections. - // processLeafConnect() already sent the rejection and closed - // the connection, so there is nothing else to do here. + // When process the CONNECT protocol, if the minimum version + // required was not met, an error was printed and sent back to + // the remote, and connection was closed after a certain delay + // (to avoid "rapid" reconnection from the remote). + // We don't need to do any of the things below, simply return. return } if dur := time.Since(c.in.start); dur >= readLoopReportThreshold { @@ -1500,10 +1489,13 @@ func (c *client) readLoop(pre []byte) { } return } - c.resetReadLoopStallTime() + // Clear total stalled time here. + if c.in.tst >= stallClientMaxDuration { + c.rateLimitFormatWarnf("Producer was stalled for a total of %v", c.in.tst.Round(time.Millisecond)) + } + c.in.tst = 0 } - postParse: // If we are a ROUTER/LEAF and have processed an INFO, it is possible that // we are asked to switch to compression now. if checkCompress && c.in.flags.isSet(switchToCompression) { @@ -2123,37 +2115,41 @@ func (c *client) processErr(errStr string) { } } -// Matcher for pass/password and auth_token fields. -var prefixAuthPat = regexp.MustCompile(`"?\s*(?:auth_token\S*?|pass\S*?)"?\s*[:=]\s*"?([^",\r\n}]*)`) - -// Exact matcher for fields sig, proxy_sig and nkey. -// Overlapping field "sig" does not match inside "proxy_sig". -var exactAuthPat = regexp.MustCompile(`(?:^|[^A-Za-z0-9_])"?\s*(?:proxy_sig|nkey|sig)"?\s*[:=]\s*"?([^",\r\n}]*)`) +// Password pattern matcher. +var passPat = regexp.MustCompile(`"?\s*pass\S*?"?\s*[:=]\s*"?(([^",\r\n}])*)`) +var tokenPat = regexp.MustCompile(`"?\s*auth_token\S*?"?\s*[:=]\s*"?(([^",\r\n}])*)`) // removeSecretsFromTrace removes any notion of passwords/tokens from trace // messages for logging. func removeSecretsFromTrace(arg []byte) []byte { - buf := redact(prefixAuthPat, arg) - return redact(exactAuthPat, buf) + buf := redact("pass", passPat, arg) + return redact("auth_token", tokenPat, buf) } -func redact(pat *regexp.Regexp, proto []byte) []byte { - m := pat.FindAllSubmatchIndex(proto, -1) - if len(m) == 0 { +func redact(name string, pat *regexp.Regexp, proto []byte) []byte { + if !bytes.Contains(proto, []byte(name)) { return proto } // Take a copy of the connect proto just for the trace message. var _arg [4096]byte buf := append(_arg[:0], proto...) + + m := pat.FindAllSubmatchIndex(buf, -1) + if len(m) == 0 { + return proto + } + redactedPass := []byte("[REDACTED]") - for i := len(m) - 1; i >= 0; i-- { - match := m[i] - if len(match) < 4 { + for _, i := range m { + if len(i) < 4 { continue } - start, end := match[2], match[3] + start := i[2] + end := i[3] + // Replace value substring. buf = append(buf[:start], append(redactedPass, buf[end:]...)...) + break } return buf } @@ -2689,9 +2685,11 @@ func (c *client) processPong() { c.rtt = computeRTT(c.rttStart) srv := c.srv reorderGWs := c.kind == GATEWAY && c.gw.outbound + firstPong := c.flags.setIfNotSet(firstPong) var ri *routeInfo - // For a route with pooling, we may be instructed to start a new route. - if c.kind == ROUTER && c.route != nil && c.route.startNewRoute != nil { + // When receiving the first PONG, for a route with pooling, we may be + // instructed to start a new route. + if firstPong && c.kind == ROUTER && c.route != nil { ri = c.route.startNewRoute c.route.startNewRoute = nil } @@ -2809,10 +2807,9 @@ func (c *client) processHeaderPub(arg, remaining []byte) error { // look for the tracing header and if found, we will generate a // trace event with the max payload ingress error. // Do this only for CLIENT connections. - if c.kind == CLIENT && c.pa.hdr > 0 && len(remaining) > 0 { - hdr := remaining[:min(len(remaining), c.pa.hdr)] - if td, ok := c.allowedMsgTraceDest(hdr, false); ok && td != _EMPTY_ { - c.initAndSendIngressErrEvent(hdr, td, ErrMaxPayload) + if c.kind == CLIENT && len(remaining) > 0 { + if td := getHeader(MsgTraceDest, remaining); len(td) > 0 { + c.initAndSendIngressErrEvent(remaining, string(td), ErrMaxPayload) } } c.maxPayloadViolation(c.pa.size, maxPayload) @@ -3245,12 +3242,10 @@ func (c *client) canSubscribe(subject string, optQueue ...string) bool { queue = optQueue[0] } - // For CLIENT connections that are MQTT we will implicitly allow anything that starts with - // the "$MQTT.sub." or "$MQTT.deliver.pubrel." prefix. For other types of connections, we - // will implicitly allow anything that starts with the full "$MQTT." prefix. However, + // For CLIENT connections that are MQTT, or other types of connections, we will + // implicitly allow anything that starts with the "$MQTT." prefix. However, // we don't just return here, we skip the check for "allow" but will check "deny". - if (c.isMqtt() && (strings.HasPrefix(subject, mqttSubPrefix) || strings.HasPrefix(subject, mqttPubRelDeliverySubjectPrefix))) || - (c.kind != CLIENT && strings.HasPrefix(subject, mqttPrefix)) { + if (c.isMqtt() || (c.kind != CLIENT)) && strings.HasPrefix(subject, mqttPrefix) { checkAllow = false } // Check allow list. If no allow list that means all are allowed. Deny can overrule. @@ -4060,41 +4055,6 @@ func (c *client) pubAllowed(subject string) bool { return c.pubAllowedFullCheck(subject, true, false) } -// allowedMsgTraceDest returns the trace destination if present and authorized. -// It only considers static publish permissions and does not consume dynamic -// reply permissions because the client is not publishing the trace event itself. -func (c *client) allowedMsgTraceDest(hdr []byte, hasLock bool) (string, bool) { - if len(hdr) == 0 { - return _EMPTY_, true - } - td := sliceHeader(MsgTraceDest, hdr) - if len(td) == 0 { - return _EMPTY_, true - } - dest := bytesToString(td) - if c.kind == CLIENT { - if hasGWRoutedReplyPrefix(td) { - return dest, false - } - var acc *Account - var srv *Server - if !hasLock { - c.mu.Lock() - } - acc, srv = c.acc, c.srv - if !hasLock { - c.mu.Unlock() - } - if bytes.HasPrefix(td, clientNRGPrefix) && srv != nil && acc != srv.SystemAccount() { - return dest, false - } - } - if c.perms != nil && (c.perms.pub.allow != nil || c.perms.pub.deny != nil) && !c.pubAllowedFullCheck(dest, false, hasLock) { - return dest, false - } - return dest, true -} - // pubAllowedFullCheck checks on all publish permissioning depending // on the flag for dynamic reply permissions. func (c *client) pubAllowedFullCheck(subject string, fullCheck, hasLock bool) bool { @@ -4107,10 +4067,10 @@ func (c *client) pubAllowedFullCheck(subject string, fullCheck, hasLock bool) bo return v.(bool) } allowed, checkAllow := true, true - // For any connections, other than CLIENT, we will implicitly allow anything that - // starts with the "$MQTT." prefix. However, we don't just return here, - // we skip the check for "allow" but will check "deny". - if c.kind != CLIENT && strings.HasPrefix(subject, mqttPrefix) { + // For CLIENT connections that are MQTT, or other types of connections, we will + // implicitly allow anything that starts with the "$MQTT." prefix. However, + // we don't just return here, we skip the check for "allow" but will check "deny". + if (c.isMqtt() || c.kind != CLIENT) && strings.HasPrefix(subject, mqttPrefix) { checkAllow = false } // Cache miss, check allow then deny as needed. @@ -4230,19 +4190,10 @@ func (c *client) processInboundClientMsg(msg []byte) (bool, bool) { genidAddr := &acc.sl.genid // Check pub permissions - if c.perms != nil && (c.perms.pub.allow != nil || c.perms.pub.deny != nil) { - if !c.pubAllowedFullCheck(string(c.pa.subject), true, true) { - c.mu.Unlock() - c.pubPermissionViolation(c.pa.subject) - return false, true - } - } - if c.pa.hdr > 0 { - if td, ok := c.allowedMsgTraceDest(msg[:c.pa.hdr], true); !ok { - c.mu.Unlock() - c.pubPermissionViolation(stringToBytes(td)) - return false, true - } + if c.perms != nil && (c.perms.pub.allow != nil || c.perms.pub.deny != nil) && !c.pubAllowedFullCheck(string(c.pa.subject), true, true) { + c.mu.Unlock() + c.pubPermissionViolation(c.pa.subject) + return false, true } c.mu.Unlock() @@ -4442,43 +4393,28 @@ func (c *client) setupResponseServiceImport(acc *Account, si *serviceImport, tra return rsi } -// Will remove a status and description from the header if present. -func removeHeaderStatusIfPresent(hdr []byte) []byte { - k := []byte("NATS/1.0") - kl, i := len(k), bytes.IndexByte(hdr, '\r') - if !bytes.HasPrefix(hdr, k) || i <= kl { +// Will remove a header if present. +func removeHeaderIfPresent(hdr []byte, key string) []byte { + start := getHeaderKeyIndex(key, hdr) + // key can't be first and we want to check that it is preceded by a '\n' + if start < 1 || hdr[start-1] != '\n' { return hdr } - hdr = append(hdr[:kl], hdr[i:]...) - if len(hdr) == len(emptyHdrLine) { + index := start + len(key) + if index >= len(hdr) || hdr[index] != ':' { + return hdr + } + end := bytes.Index(hdr[start:], []byte(_CRLF_)) + if end < 0 { + return hdr + } + hdr = append(hdr[:start], hdr[start+end+len(_CRLF_):]...) + if len(hdr) <= len(emptyHdrLine) { return nil } return hdr } -// Will remove a header if present. -func removeHeaderIfPresent(hdr []byte, key string) []byte { - for { - start := getHeaderKeyIndex(key, hdr) - // key can't be first and we want to check that it is preceded by a '\n' - if start < 1 || hdr[start-1] != '\n' { - return hdr - } - index := start + len(key) - if index >= len(hdr) || hdr[index] != ':' { - return hdr - } - end := bytes.Index(hdr[start:], []byte(_CRLF_)) - if end < 0 { - return hdr - } - hdr = append(hdr[:start], hdr[start+end+len(_CRLF_):]...) - if len(hdr) <= len(emptyHdrLine) { - return nil - } - } -} - func removeHeaderIfPrefixPresent(hdr []byte, prefix string) []byte { var index int for { @@ -4813,33 +4749,16 @@ func (c *client) processServiceImport(si *serviceImport, acc *Account, msg []byt if !isResponse { isSysImport := siAcc == c.srv.SystemAccount() var ci *ClientInfo - var cis *ClientInfo - if c.pa.hdr >= 0 { - var hci ClientInfo - if err := json.Unmarshal(sliceHeader(ClientInfoHdr, msg[:c.pa.hdr]), &hci); err == nil { - cis = &hci - } - } - if c.kind == LEAF && c.pa.hdr >= 0 && len(sliceHeader(ClientInfoHdr, msg[:c.pa.hdr])) > 0 { - // Leaf nodes may forward a Nats-Request-Info from a remote domain, - // but the local server must replace it with the identity of the - // authenticated leaf connection instead of trusting forwarded values. - ci = c.getClientInfo(share) - if hadPrevSi { + if hadPrevSi && c.pa.hdr >= 0 { + var cis ClientInfo + if err := json.Unmarshal(sliceHeader(ClientInfoHdr, msg[:c.pa.hdr]), &cis); err == nil { + ci = &cis ci.Service = acc.Name + // Check if we are moving into a share details account from a non-shared + // and add in server and cluster details. if !share && (si.share || isSysImport) { c.addServerAndClusterInfo(ci) } - } else if !share && isSysImport { - c.addServerAndClusterInfo(ci) - } - } else if hadPrevSi && cis != nil { - ci = cis - ci.Service = acc.Name - // Check if we are moving into a share details account from a non-shared - // and add in server and cluster details. - if !share && (si.share || isSysImport) { - c.addServerAndClusterInfo(ci) } } else if c.kind != LEAF || c.pa.hdr < 0 || len(sliceHeader(ClientInfoHdr, msg[:c.pa.hdr])) == 0 { ci = c.getClientInfo(share) @@ -4847,6 +4766,12 @@ func (c *client) processServiceImport(si *serviceImport, acc *Account, msg []byt if !share && isSysImport { c.addServerAndClusterInfo(ci) } + } else if c.kind == LEAF && (si.share || isSysImport) { + // We have a leaf header here for ci, augment as above. + ci = c.getClientInfo(si.share) + if !si.share && isSysImport { + c.addServerAndClusterInfo(ci) + } } // Set clientInfo if present. if ci != nil { diff --git a/vendor/github.com/nats-io/nats-server/v2/server/client_proxyproto.go b/vendor/github.com/nats-io/nats-server/v2/server/client_proxyproto.go index 69040e95778..cdfbda7609b 100644 --- a/vendor/github.com/nats-io/nats-server/v2/server/client_proxyproto.go +++ b/vendor/github.com/nats-io/nats-server/v2/server/client_proxyproto.go @@ -131,22 +131,19 @@ func detectProxyProtoVersion(conn net.Conn) (version int, header []byte, err err // readProxyProtoV1Header parses PROXY protocol v1 text format. // Expects the "PROXY " prefix (6 bytes) to have already been consumed. -// Returns any bytes that were read past the trailing CRLF so the caller can -// replay them into the next protocol layer. -func readProxyProtoV1Header(conn net.Conn) (*proxyProtoAddr, []byte, error) { +func readProxyProtoV1Header(conn net.Conn) (*proxyProtoAddr, error) { // Read rest of line (max 107 bytes total, already read 6) maxRemaining := proxyProtoV1MaxLineLen - 6 // Read up to maxRemaining bytes at once (more efficient than byte-by-byte) buf := make([]byte, maxRemaining) var line []byte - var remaining []byte for len(line) < maxRemaining { // Read available data n, err := conn.Read(buf[len(line):]) if err != nil { - return nil, nil, fmt.Errorf("failed to read v1 line: %w", err) + return nil, fmt.Errorf("failed to read v1 line: %w", err) } line = buf[:len(line)+n] @@ -154,8 +151,7 @@ func readProxyProtoV1Header(conn net.Conn) (*proxyProtoAddr, []byte, error) { // Look for CRLF in what we've read so far for i := 0; i < len(line)-1; i++ { if line[i] == '\r' && line[i+1] == '\n' { - // Found CRLF - keep any over-read bytes for the client parser. - remaining = append(remaining, line[i+2:]...) + // Found CRLF - extract just the line portion line = line[:i] goto foundCRLF } @@ -163,7 +159,7 @@ func readProxyProtoV1Header(conn net.Conn) (*proxyProtoAddr, []byte, error) { } // Exceeded max length without finding CRLF - return nil, nil, fmt.Errorf("%w: v1 line too long", errProxyProtoInvalid) + return nil, fmt.Errorf("%w: v1 line too long", errProxyProtoInvalid) foundCRLF: // Get parts from the protocol @@ -171,17 +167,17 @@ foundCRLF: // Validate format if len(parts) < 1 { - return nil, nil, fmt.Errorf("%w: invalid v1 format", errProxyProtoInvalid) + return nil, fmt.Errorf("%w: invalid v1 format", errProxyProtoInvalid) } // Handle UNKNOWN (health check, like v2 LOCAL) if parts[0] == proxyProtoV1Unknown { - return nil, remaining, nil + return nil, nil } // Must have exactly 5 parts: protocol, src-ip, dst-ip, src-port, dst-port if len(parts) != 5 { - return nil, nil, fmt.Errorf("%w: invalid v1 format", errProxyProtoInvalid) + return nil, fmt.Errorf("%w: invalid v1 format", errProxyProtoInvalid) } protocol := parts[0] @@ -189,29 +185,29 @@ foundCRLF: dstIP := net.ParseIP(parts[2]) if srcIP == nil || dstIP == nil { - return nil, nil, fmt.Errorf("%w: invalid address", errProxyProtoInvalid) + return nil, fmt.Errorf("%w: invalid address", errProxyProtoInvalid) } // Parse ports srcPort, err := strconv.ParseUint(parts[3], 10, 16) if err != nil { - return nil, nil, fmt.Errorf("invalid source port: %w", err) + return nil, fmt.Errorf("invalid source port: %w", err) } dstPort, err := strconv.ParseUint(parts[4], 10, 16) if err != nil { - return nil, nil, fmt.Errorf("invalid dest port: %w", err) + return nil, fmt.Errorf("invalid dest port: %w", err) } // Validate protocol matches IP version if protocol == proxyProtoV1TCP4 && srcIP.To4() == nil { - return nil, nil, fmt.Errorf("%w: TCP4 with IPv6 address", errProxyProtoInvalid) + return nil, fmt.Errorf("%w: TCP4 with IPv6 address", errProxyProtoInvalid) } if protocol == proxyProtoV1TCP6 && srcIP.To4() != nil { - return nil, nil, fmt.Errorf("%w: TCP6 with IPv4 address", errProxyProtoInvalid) + return nil, fmt.Errorf("%w: TCP6 with IPv4 address", errProxyProtoInvalid) } if protocol != proxyProtoV1TCP4 && protocol != proxyProtoV1TCP6 { - return nil, nil, fmt.Errorf("%w: invalid protocol %s", errProxyProtoInvalid, protocol) + return nil, fmt.Errorf("%w: invalid protocol %s", errProxyProtoInvalid, protocol) } return &proxyProtoAddr{ @@ -219,27 +215,25 @@ foundCRLF: srcPort: uint16(srcPort), dstIP: dstIP, dstPort: uint16(dstPort), - }, remaining, nil + }, nil } // readProxyProtoHeader reads and parses PROXY protocol (v1 or v2) from the connection. // Automatically detects version and routes to appropriate parser. // If the command is LOCAL/UNKNOWN (health check), it returns nil for addr and no error. // If the command is PROXY, it returns the parsed address information. -// It also returns any bytes that were read past the v1 header terminator so the -// caller can replay them into the normal client parser. // The connection must be fresh (no data read yet). -func readProxyProtoHeader(conn net.Conn) (*proxyProtoAddr, []byte, error) { +func readProxyProtoHeader(conn net.Conn) (*proxyProtoAddr, error) { // Set read deadline to prevent hanging on slow/malicious clients if err := conn.SetReadDeadline(time.Now().Add(proxyProtoReadTimeout)); err != nil { - return nil, nil, err + return nil, err } defer conn.SetReadDeadline(time.Time{}) // Detect version version, firstBytes, err := detectProxyProtoVersion(conn) if err != nil { - return nil, nil, err + return nil, err } switch version { @@ -250,26 +244,25 @@ func readProxyProtoHeader(conn net.Conn) (*proxyProtoAddr, []byte, error) { // Read rest of v2 signature (bytes 6-11, total 6 more bytes) remaining := make([]byte, 6) if _, err := io.ReadFull(conn, remaining); err != nil { - return nil, nil, fmt.Errorf("failed to read v2 signature: %w", err) + return nil, fmt.Errorf("failed to read v2 signature: %w", err) } // Verify full signature fullSig := string(firstBytes) + string(remaining) if fullSig != proxyProtoV2Sig { - return nil, nil, fmt.Errorf("%w: invalid signature", errProxyProtoInvalid) + return nil, fmt.Errorf("%w: invalid signature", errProxyProtoInvalid) } // Read rest of header: ver/cmd, fam/proto, addr-len (4 bytes) header := make([]byte, 4) if _, err := io.ReadFull(conn, header); err != nil { - return nil, nil, fmt.Errorf("failed to read v2 header: %w", err) + return nil, fmt.Errorf("failed to read v2 header: %w", err) } // Continue with parsing - addr, err := parseProxyProtoV2Header(conn, header) - return addr, nil, err + return parseProxyProtoV2Header(conn, header) default: - return nil, nil, fmt.Errorf("unsupported PROXY protocol version: %d", version) + return nil, fmt.Errorf("unsupported PROXY protocol version: %d", version) } } diff --git a/vendor/github.com/nats-io/nats-server/v2/server/const.go b/vendor/github.com/nats-io/nats-server/v2/server/const.go index 410fc5e601a..82cbf0f9090 100644 --- a/vendor/github.com/nats-io/nats-server/v2/server/const.go +++ b/vendor/github.com/nats-io/nats-server/v2/server/const.go @@ -66,7 +66,7 @@ func init() { const ( // VERSION is the current version for the server. - VERSION = "2.12.6" + VERSION = "2.12.5" // PROTO is the currently supported protocol. // 0 was the original diff --git a/vendor/github.com/nats-io/nats-server/v2/server/errors.go b/vendor/github.com/nats-io/nats-server/v2/server/errors.go index ce0a9beb1c6..f3b3913789c 100644 --- a/vendor/github.com/nats-io/nats-server/v2/server/errors.go +++ b/vendor/github.com/nats-io/nats-server/v2/server/errors.go @@ -215,9 +215,6 @@ var ( // ErrMinimumVersionRequired is returned when a connection is not at the minimum version required. ErrMinimumVersionRequired = errors.New("minimum version required") - // ErrLeafNodeMinVersionRejected is the leafnode protocol error prefix used - // when rejecting a remote due to leafnodes.min_version. - ErrLeafNodeMinVersionRejected = errors.New("connection rejected since minimum version required is") // ErrInvalidMappingDestination is used for all subject mapping destination errors ErrInvalidMappingDestination = errors.New("invalid mapping destination") diff --git a/vendor/github.com/nats-io/nats-server/v2/server/events.go b/vendor/github.com/nats-io/nats-server/v2/server/events.go index bfe190cd00e..8bcb3a713fa 100644 --- a/vendor/github.com/nats-io/nats-server/v2/server/events.go +++ b/vendor/github.com/nats-io/nats-server/v2/server/events.go @@ -1500,8 +1500,6 @@ func (s *Server) initEventTracking() { type UserInfo struct { UserID string `json:"user"` Account string `json:"account"` - AccountName string `json:"account_name,omitempty"` - UserName string `json:"user_name,omitempty"` Permissions *Permissions `json:"permissions,omitempty"` Expires time.Duration `json:"expires,omitempty"` } @@ -1521,22 +1519,9 @@ func (s *Server) userInfoReq(sub *subscription, c *client, _ *Account, subject, return } - // Look up the requester's account directly from ci.Account rather than - // using the acc returned by getRequestInfo, which may resolve to the - // service account (ci.Service) when the request arrives via a chained - // service import. - var accountName string - if ci.Account != _EMPTY_ { - if reqAcc, _ := s.LookupAccount(ci.Account); reqAcc != nil { - accountName = reqAcc.getNameTag() - } - } - response.Data = &UserInfo{ UserID: ci.User, Account: ci.Account, - AccountName: accountName, - UserName: ci.NameTag, Permissions: c.publicPermissions(), Expires: c.claimExpiration(), } diff --git a/vendor/github.com/nats-io/nats-server/v2/server/jetstream.go b/vendor/github.com/nats-io/nats-server/v2/server/jetstream.go index 3ec6942b905..7ca0d4ceeef 100644 --- a/vendor/github.com/nats-io/nats-server/v2/server/jetstream.go +++ b/vendor/github.com/nats-io/nats-server/v2/server/jetstream.go @@ -2486,25 +2486,25 @@ func (js *jetStream) checkBytesLimits(selectedLimits *JetStreamAccountLimits, ad if addBytes < 0 { addBytes = 1 } - totalBytes := addSaturate(addBytes, maxBytesOffset) + totalBytes := addBytes + maxBytesOffset switch storage { case MemoryStorage: // Account limits defined. - if selectedLimits.MaxMemory >= 0 && (currentRes > selectedLimits.MaxMemory || totalBytes > selectedLimits.MaxMemory-currentRes) { + if selectedLimits.MaxMemory >= 0 && currentRes+totalBytes > selectedLimits.MaxMemory { return NewJSMemoryResourcesExceededError() } // Check if this server can handle request. - if checkServer && (js.memReserved > js.config.MaxMemory || totalBytes > js.config.MaxMemory-js.memReserved) { + if checkServer && js.memReserved+totalBytes > js.config.MaxMemory { return NewJSMemoryResourcesExceededError() } case FileStorage: // Account limits defined. - if selectedLimits.MaxStore >= 0 && (currentRes > selectedLimits.MaxStore || totalBytes > selectedLimits.MaxStore-currentRes) { + if selectedLimits.MaxStore >= 0 && currentRes+totalBytes > selectedLimits.MaxStore { return NewJSStorageResourcesExceededError() } // Check if this server can handle request. - if checkServer && (js.storeReserved > js.config.MaxStore || totalBytes > js.config.MaxStore-js.storeReserved) { + if checkServer && js.storeReserved+totalBytes > js.config.MaxStore { return NewJSStorageResourcesExceededError() } } diff --git a/vendor/github.com/nats-io/nats-server/v2/server/jetstream_api.go b/vendor/github.com/nats-io/nats-server/v2/server/jetstream_api.go index e8600e14f87..1ed42f428b9 100644 --- a/vendor/github.com/nats-io/nats-server/v2/server/jetstream_api.go +++ b/vendor/github.com/nats-io/nats-server/v2/server/jetstream_api.go @@ -25,9 +25,9 @@ import ( "runtime" "slices" "strings" - "sync" "sync/atomic" "time" + "unicode" "github.com/nats-io/nuid" ) @@ -607,7 +607,7 @@ const JSApiStreamRestoreResponseType = "io.nats.jetstream.api.v1.stream_restore_ // JSApiStreamRemovePeerRequest is the required remove peer request. type JSApiStreamRemovePeerRequest struct { - // Server name or peer ID of the peer to be removed. + // Server name of the peer to be removed. Peer string `json:"peer"` } @@ -1595,9 +1595,9 @@ func (jsa *jsAccount) tieredReservation(tier string, cfg *StreamConfig) int64 { // If tier is empty, all storage is flat and we should adjust for replicas. // Otherwise if tiered, storage replication already taken into consideration. if tier == _EMPTY_ && sa.cfg.Replicas > 1 { - reservation = addSaturate(reservation, mulSaturate(int64(sa.cfg.Replicas), sa.cfg.MaxBytes)) + reservation += (int64(sa.cfg.Replicas) * sa.cfg.MaxBytes) } else { - reservation = addSaturate(reservation, sa.cfg.MaxBytes) + reservation += sa.cfg.MaxBytes } } } @@ -1880,7 +1880,7 @@ func (s *Server) jsStreamNamesRequest(sub *subscription, c *client, _ *Account, s.sendAPIErrResponse(ci, acc, subject, reply, string(msg), s.jsonResponse(&resp)) return } - offset = max(req.Offset, 0) + offset = req.Offset if req.Subject != _EMPTY_ { filter = req.Subject } @@ -2016,7 +2016,7 @@ func (s *Server) jsStreamListRequest(sub *subscription, c *client, _ *Account, s s.sendAPIErrResponse(ci, acc, subject, reply, string(msg), s.jsonResponse(&resp)) return } - offset = max(req.Offset, 0) + offset = req.Offset if req.Subject != _EMPTY_ { filter = req.Subject } @@ -2212,7 +2212,7 @@ func (s *Server) jsStreamInfoRequest(sub *subscription, c *client, a *Account, s return } details, subjects = req.DeletedDetails, req.SubjectsFilter - offset = max(req.Offset, 0) + offset = req.Offset } mset, err := acc.lookupStream(streamName) @@ -2625,17 +2625,13 @@ func (s *Server) jsStreamRemovePeerRequest(sub *subscription, c *client, _ *Acco return } + // Check to see if we are a member of the group and if the group has no leader. + // Peers here is a server name, convert to node name. + nodeName := getHash(req.Peer) + js.mu.RLock() rg := sa.Group - - // Check to see if we are a member of the group. - // Peer here is either a peer ID or a server name, convert to node name. - nodeName := getHash(req.Peer) isMember := rg.isMember(nodeName) - if !isMember { - nodeName = req.Peer - isMember = rg.isMember(nodeName) - } js.mu.RUnlock() // Make sure we are a member. @@ -3090,13 +3086,6 @@ func (s *Server) jsLeaderAccountPurgeRequest(sub *subscription, c *client, _ *Ac var resp = JSApiAccountPurgeResponse{ApiResponse: ApiResponse{Type: JSApiAccountPurgeResponseType}} - // Check for path like separators in the name. - if strings.ContainsAny(accName, `\/`) { - resp.Error = NewJSStreamGeneralError(errors.New("account name can not contain path separators")) - s.sendAPIErrResponse(ci, acc, subject, reply, string(msg), s.jsonResponse(&resp)) - return - } - if !s.JetStreamIsClustered() { var streams []*stream var ac *Account @@ -4042,16 +4031,6 @@ func (s *Server) jsStreamRestoreRequest(sub *subscription, c *client, _ *Account if stream != req.Config.Name && req.Config.Name == _EMPTY_ { req.Config.Name = stream } - if stream != req.Config.Name { - resp.Error = NewJSStreamMismatchError() - s.sendAPIErrResponse(ci, acc, subject, reply, string(msg), s.jsonResponse(&resp)) - return - } - - if s.JetStreamIsClustered() { - s.jsClusteredStreamRestoreRequest(ci, acc, &req, subject, reply, rmsg) - return - } // check stream config at the start of the restore process, not at the end cfg, apiErr := s.checkStreamCfg(&req.Config, acc, false) @@ -4061,6 +4040,11 @@ func (s *Server) jsStreamRestoreRequest(sub *subscription, c *client, _ *Account return } + if s.JetStreamIsClustered() { + s.jsClusteredStreamRestoreRequest(ci, acc, &req, subject, reply, rmsg) + return + } + if err := acc.jsNonClusteredStreamLimitsCheck(&cfg); err != nil { resp.Error = err s.sendAPIErrResponse(ci, acc, subject, reply, string(msg), s.jsonResponse(&resp)) @@ -4081,12 +4065,30 @@ func (s *Server) jsStreamRestoreRequest(sub *subscription, c *client, _ *Account return } - s.processStreamRestore(ci, acc, &cfg, subject, reply, string(msg)) + s.processStreamRestore(ci, acc, &req.Config, subject, reply, string(msg)) } func (s *Server) processStreamRestore(ci *ClientInfo, acc *Account, cfg *StreamConfig, subject, reply, msg string) <-chan error { + js := s.getJetStream() + var resp = JSApiStreamRestoreResponse{ApiResponse: ApiResponse{Type: JSApiStreamRestoreResponseType}} + snapDir := filepath.Join(js.config.StoreDir, snapStagingDir) + if _, err := os.Stat(snapDir); os.IsNotExist(err) { + if err := os.MkdirAll(snapDir, defaultDirPerms); err != nil { + resp.Error = &ApiError{Code: 503, Description: "JetStream unable to create temp storage for restore"} + s.sendAPIErrResponse(ci, acc, subject, reply, string(msg), s.jsonResponse(&resp)) + return nil + } + } + + tfile, err := os.CreateTemp(snapDir, "js-restore-") + if err != nil { + resp.Error = NewJSTempStorageFailedError() + s.sendAPIErrResponse(ci, acc, subject, reply, msg, s.jsonResponse(&resp)) + return nil + } + streamName := cfg.Name s.Noticef("Starting restore for stream '%s > %s'", acc.Name, streamName) @@ -4112,59 +4114,29 @@ func (s *Server) processStreamRestore(ci *ClientInfo, acc *Account, cfg *StreamC } // For signaling to upper layers. - var resultOnce sync.Once - var closeOnce sync.Once resultCh := make(chan result, 1) - pr, pw := io.Pipe() + activeQ := newIPQueue[int](s, fmt.Sprintf("[ACC:%s] stream '%s' restore", acc.Name, streamName)) // of int - setResult := func(err error, reply string) { - resultOnce.Do(func() { - resultCh <- result{err, reply} - }) - } - activeQ := newIPQueue[int](s, fmt.Sprintf("[ACC:%s] stream '%s' restore", acc.Name, streamName)) - restoreCh := make(chan struct { - mset *stream - err error - }, 1) - closeWithError := func(err error) { - closeOnce.Do(func() { - if err != nil { - pw.CloseWithError(err) - } else { - pw.Close() - } - }) - } - - s.startGoRoutine(func() { - defer s.grWG.Done() - mset, err := acc.RestoreStream(cfg, pr) - if err != nil { - pr.CloseWithError(err) - } else { - pr.Close() - } - restoreCh <- struct { - mset *stream - err error - }{ - mset: mset, - err: err, - } - }) + var total int + // FIXME(dlc) - Probably take out of network path eventually due to disk I/O? processChunk := func(sub *subscription, c *client, _ *Account, subject, reply string, msg []byte) { // We require reply subjects to communicate back failures, flow etc. If they do not have one log and cancel. if reply == _EMPTY_ { sub.client.processUnsub(sub.sid) - setResult(fmt.Errorf("restore for stream '%s > %s' requires reply subject for each chunk", acc.Name, streamName), reply) + resultCh <- result{ + fmt.Errorf("restore for stream '%s > %s' requires reply subject for each chunk", acc.Name, streamName), + reply, + } return } // Account client messages have \r\n on end. This is an error. if len(msg) < LEN_CR_LF { sub.client.processUnsub(sub.sid) - setResult(fmt.Errorf("restore for stream '%s > %s' received short chunk", acc.Name, streamName), reply) + resultCh <- result{ + fmt.Errorf("restore for stream '%s > %s' received short chunk", acc.Name, streamName), + reply, + } return } // Adjust. @@ -4172,32 +4144,26 @@ func (s *Server) processStreamRestore(ci *ClientInfo, acc *Account, cfg *StreamC // This means we are complete with our transfer from the client. if len(msg) == 0 { - s.Debugf("Finished streaming restore for stream '%s > %s'", acc.Name, streamName) - closeWithError(nil) - setResult(nil, reply) + s.Debugf("Finished staging restore for stream '%s > %s'", acc.Name, streamName) + resultCh <- result{err, reply} return } - // Signal activity before and after the blocking write. - // The pre-write signal refreshes the stall watchdog when the - // chunk arrives; the post-write signal refreshes it again once - // RestoreStream has consumed the data. This keeps the idle - // window between chunks anchored to the end of the previous - // write instead of its start. - activeQ.push(0) + // We track total and check on server limits. + // TODO(dlc) - We could check apriori and cancel initial request if we know it won't fit. + total += len(msg) + if js.wouldExceedLimits(FileStorage, total) { + s.resourcesExceededError(FileStorage) + resultCh <- result{NewJSInsufficientResourcesError(), reply} + return + } - if _, err := pw.Write(msg); err != nil { - closeWithError(err) - sub.client.processUnsub(sub.sid) - var resp = JSApiStreamCreateResponse{ApiResponse: ApiResponse{Type: JSApiStreamCreateResponseType}} - if IsNatsErr(err, JSStorageResourcesExceededErr, JSMemoryResourcesExceededErr) { - s.resourcesExceededError(cfg.Storage) + // Append chunk to temp file. Mark as issue if we encounter an error. + if n, err := tfile.Write(msg); n != len(msg) || err != nil { + resultCh <- result{err, reply} + if reply != _EMPTY_ { + s.sendInternalAccountMsg(acc, reply, "-ERR 'storage failure during restore'") } - resp.Error = NewJSStreamRestoreError(err, Unless(err)) - if s.sendInternalAccountMsg(acc, reply, s.jsonResponse(&resp)) == nil { - reply = _EMPTY_ - } - setResult(err, reply) return } @@ -4208,7 +4174,8 @@ func (s *Server) processStreamRestore(ci *ClientInfo, acc *Account, cfg *StreamC sub, err := acc.subscribeInternal(restoreSubj, processChunk) if err != nil { - closeWithError(err) + tfile.Close() + os.Remove(tfile.Name()) resp.Error = NewJSRestoreSubscribeFailedError(err, restoreSubj) s.sendAPIErrResponse(ci, acc, subject, reply, msg, s.jsonResponse(&resp)) return nil @@ -4218,14 +4185,14 @@ func (s *Server) processStreamRestore(ci *ClientInfo, acc *Account, cfg *StreamC resp.DeliverSubject = restoreSubj s.sendAPIResponse(ci, acc, subject, reply, msg, s.jsonResponse(resp)) - // Returned to the caller to wait for completion. doneCh := make(chan error, 1) // Monitor the progress from another Go routine. s.startGoRoutine(func() { defer s.grWG.Done() defer func() { - closeWithError(ErrConnectionClosed) + tfile.Close() + os.Remove(tfile.Name()) sub.client.processUnsub(sub.sid) activeQ.unregister() }() @@ -4235,97 +4202,71 @@ func (s *Server) processStreamRestore(ci *ClientInfo, acc *Account, cfg *StreamC defer notActive.Stop() total := 0 - var inputDone bool - var replySubj string - var inputErr error - var restoreDone bool - var restoreResult struct { - mset *stream - err error - } - - finish := func(reply string, err error, mset *stream) { - end := time.Now().UTC() - - s.publishAdvisory(acc, JSAdvisoryStreamRestoreCompletePre+"."+streamName, &JSRestoreCompleteAdvisory{ - TypedEvent: TypedEvent{ - Type: JSRestoreCompleteAdvisoryType, - ID: nuid.Next(), - Time: end, - }, - Stream: streamName, - Start: start, - End: end, - Bytes: int64(total), - Client: ci.forAdvisory(), - Domain: domain, - }) - - var resp = JSApiStreamCreateResponse{ApiResponse: ApiResponse{Type: JSApiStreamCreateResponseType}} - if err != nil { - if IsNatsErr(err, JSStorageResourcesExceededErr, JSMemoryResourcesExceededErr) { - s.resourcesExceededError(cfg.Storage) - } - resp.Error = NewJSStreamRestoreError(err, Unless(err)) - s.Warnf("Restore failed for %s for stream '%s > %s' in %v", - friendlyBytes(int64(total)), acc.Name, streamName, end.Sub(start)) - } else { - msetCfg := mset.config() - resp.StreamInfo = &StreamInfo{ - Created: mset.createdTime(), - State: mset.state(), - Config: *setDynamicStreamMetadata(&msetCfg), - TimeStamp: time.Now().UTC(), - } - s.Noticef("Completed restore of %s for stream '%s > %s' in %v", - friendlyBytes(int64(total)), acc.Name, streamName, end.Sub(start).Round(time.Millisecond)) - } - if reply != _EMPTY_ { - s.sendInternalAccountMsg(acc, reply, s.jsonResponse(&resp)) - } - doneCh <- err - } - for { select { case result := <-resultCh: - replySubj = result.reply - inputDone = true - inputErr = result.err - notActive.Stop() - if result.err != nil { - closeWithError(result.err) - s.Warnf(result.err.Error()) + err := result.err + var mset *stream + + // If we staged properly go ahead and do restore now. + if err == nil { + s.Debugf("Finalizing restore for stream '%s > %s'", acc.Name, streamName) + tfile.Seek(0, 0) + mset, err = acc.RestoreStream(cfg, tfile) + } else { + errStr := err.Error() + tmp := []rune(errStr) + tmp[0] = unicode.ToUpper(tmp[0]) + s.Warnf(errStr) } - if restoreDone { - err := inputErr - if err == nil { - err = restoreResult.err + + end := time.Now().UTC() + + // TODO(rip) - Should this have the error code in it?? + s.publishAdvisory(acc, JSAdvisoryStreamRestoreCompletePre+"."+streamName, &JSRestoreCompleteAdvisory{ + TypedEvent: TypedEvent{ + Type: JSRestoreCompleteAdvisoryType, + ID: nuid.Next(), + Time: end, + }, + Stream: streamName, + Start: start, + End: end, + Bytes: int64(total), + Client: ci.forAdvisory(), + Domain: domain, + }) + + var resp = JSApiStreamCreateResponse{ApiResponse: ApiResponse{Type: JSApiStreamCreateResponseType}} + + if err != nil { + resp.Error = NewJSStreamRestoreError(err, Unless(err)) + s.Warnf("Restore failed for %s for stream '%s > %s' in %v", + friendlyBytes(int64(total)), acc.Name, streamName, end.Sub(start)) + } else { + msetCfg := mset.config() + resp.StreamInfo = &StreamInfo{ + Created: mset.createdTime(), + State: mset.state(), + Config: *setDynamicStreamMetadata(&msetCfg), + TimeStamp: time.Now().UTC(), } - finish(replySubj, err, restoreResult.mset) - return - } - case rr := <-restoreCh: - restoreDone = true - restoreResult = rr - if inputDone { - err := inputErr - if err == nil { - err = rr.err - } - finish(replySubj, err, rr.mset) - return + s.Noticef("Completed restore of %s for stream '%s > %s' in %v", + friendlyBytes(int64(total)), acc.Name, streamName, end.Sub(start).Round(time.Millisecond)) } + + // On the last EOF, send back the stream info or error status. + s.sendInternalAccountMsg(acc, result.reply, s.jsonResponse(&resp)) + // Signal to the upper layers. + doneCh <- err + return case <-activeQ.ch: if n, ok := activeQ.popOne(); ok { total += n - if !inputDone { - notActive.Reset(activityInterval) - } + notActive.Reset(activityInterval) } case <-notActive.C: - err := fmt.Errorf("restore for stream '%s > %s' is stalled", acc.Name, streamName) - closeWithError(err) + err := fmt.Errorf("restore for stream '%s > %s' is stalled", acc, streamName) doneCh <- err return } @@ -4853,7 +4794,7 @@ func (s *Server) jsConsumerNamesRequest(sub *subscription, c *client, _ *Account s.sendAPIErrResponse(ci, acc, subject, reply, string(msg), s.jsonResponse(&resp)) return } - offset = max(req.Offset, 0) + offset = req.Offset } streamName := streamNameFromSubject(subject) @@ -4981,7 +4922,7 @@ func (s *Server) jsConsumerListRequest(sub *subscription, c *client, _ *Account, s.sendAPIErrResponse(ci, acc, subject, reply, string(msg), s.jsonResponse(&resp)) return } - offset = max(req.Offset, 0) + offset = req.Offset } streamName := streamNameFromSubject(subject) diff --git a/vendor/github.com/nats-io/nats-server/v2/server/jetstream_cluster.go b/vendor/github.com/nats-io/nats-server/v2/server/jetstream_cluster.go index ea524abe7ef..6acce12e2c8 100644 --- a/vendor/github.com/nats-io/nats-server/v2/server/jetstream_cluster.go +++ b/vendor/github.com/nats-io/nats-server/v2/server/jetstream_cluster.go @@ -1437,7 +1437,7 @@ func (js *jetStream) getOrphans() (streams []*stream, consumers []*consumer) { streams = append(streams, mset) } else { // This one is good, check consumers now. - for _, o := range mset.getPublicConsumers() { + for _, o := range mset.getConsumers() { if sa.consumers[o.String()] == nil { consumers = append(consumers, o) } @@ -2216,10 +2216,6 @@ func (js *jetStream) collectStreamAndConsumerChanges(c RaftNodeCheckpoint, strea as = make(map[string]*streamAssignment) streams[sa.Client.serviceAccount()] = as } - // Preserve consumers from the previous assignment. - if osa := as[sa.Config.Name]; osa != nil { - sa.consumers = osa.consumers - } as[sa.Config.Name] = sa } for _, cas := range ru.updateConsumers { @@ -2487,9 +2483,7 @@ func (js *jetStream) applyMetaEntries(entries []*Entry, ru *recoveryUpdates) (bo } if e.Type == EntrySnapshot { - if err := js.applyMetaSnapshot(e.Data, ru, isRecovering); err != nil { - return isRecovering, didSnap, err - } + js.applyMetaSnapshot(e.Data, ru, isRecovering) didSnap = true } else if e.Type == EntryRemovePeer { if !js.isMetaRecovering() { @@ -6014,9 +6008,6 @@ func (js *jetStream) consumerAssignmentsOrInflightSeq(account, stream string) it } } sa := js.streamAssignment(account, stream) - if sa == nil { - return - } for _, ca := range sa.consumers { // Skip if we already iterated over it as inflight. if _, ok := inflight[ca.Name]; ok { @@ -7543,9 +7534,9 @@ func (js *jetStream) tieredStreamAndReservationCount(accName, tier string, cfg * // If tier is empty, all storage is flat and we should adjust for replicas. // Otherwise if tiered, storage replication already taken into consideration. if tier == _EMPTY_ && sa.Config.Replicas > 1 { - reservation = addSaturate(reservation, mulSaturate(int64(sa.Config.Replicas), sa.Config.MaxBytes)) + reservation += sa.Config.MaxBytes * int64(sa.Config.Replicas) } else { - reservation = addSaturate(reservation, sa.Config.MaxBytes) + reservation += sa.Config.MaxBytes } } } @@ -7655,17 +7646,6 @@ func (s *Server) jsClusteredStreamRequest(ci *ClientInfo, acc *Account, subject, // Capture if we have existing/inflight assignment first. if osa := js.streamAssignmentOrInflight(acc.Name, cfg.Name); osa != nil { copyStreamMetadata(cfg, osa.Config) - // Set the index name on both to ensure the DeepEqual works - currentIName := make(map[string]struct{}) - for _, s := range osa.Config.Sources { - currentIName[s.iname] = struct{}{} - } - for _, s := range cfg.Sources { - s.setIndexName() - if _, ok := currentIName[s.iname]; !ok { - s.iname = _EMPTY_ - } - } if !reflect.DeepEqual(osa.Config, cfg) { resp.Error = NewJSStreamNameExistError() s.sendAPIErrResponse(ci, acc, subject, reply, string(rmsg), s.jsonResponse(&resp)) @@ -8230,16 +8210,6 @@ func (s *Server) jsClusteredStreamRestoreRequest( return } - resp := JSApiStreamRestoreResponse{ApiResponse: ApiResponse{Type: JSApiStreamRestoreResponseType}} - - // check stream config at the start of the restore process, not at the end - cfg, apiErr := s.checkStreamCfg(&req.Config, acc, false) - if apiErr != nil { - resp.Error = apiErr - s.sendAPIErrResponse(ci, acc, subject, reply, string(rmsg), s.jsonResponse(&resp)) - return - } - js.mu.Lock() defer js.mu.Unlock() @@ -8247,7 +8217,10 @@ func (s *Server) jsClusteredStreamRestoreRequest( return } - if err := js.jsClusteredStreamLimitsCheck(acc, &cfg); err != nil { + cfg := &req.Config + resp := JSApiStreamRestoreResponse{ApiResponse: ApiResponse{Type: JSApiStreamRestoreResponseType}} + + if err := js.jsClusteredStreamLimitsCheck(acc, cfg); err != nil { resp.Error = err s.sendAPIErrResponse(ci, acc, subject, reply, string(rmsg), s.jsonResponse(&resp)) return @@ -8260,7 +8233,7 @@ func (s *Server) jsClusteredStreamRestoreRequest( } // Raft group selection and placement. - rg, err := js.createGroupForStream(ci, &cfg) + rg, err := js.createGroupForStream(ci, cfg) if err != nil { resp.Error = NewJSClusterNoPeersError(err) s.sendAPIErrResponse(ci, acc, subject, reply, string(rmsg), s.jsonResponse(&resp)) @@ -8268,7 +8241,7 @@ func (s *Server) jsClusteredStreamRestoreRequest( } // Pick a preferred leader. rg.setPreferred(s) - sa := &streamAssignment{Group: rg, Sync: syncSubjForStream(), Config: &cfg, Subject: subject, Reply: reply, Client: ci, Created: time.Now().UTC()} + sa := &streamAssignment{Group: rg, Sync: syncSubjForStream(), Config: cfg, Subject: subject, Reply: reply, Client: ci, Created: time.Now().UTC()} // Now add in our restore state and pre-select a peer to handle the actual receipt of the snapshot. sa.Restore = &req.State if err := cc.meta.Propose(encodeAddStreamAssignment(sa)); err == nil { @@ -8335,9 +8308,6 @@ func (s *Server) jsClusteredStreamListRequest(acc *Account, ci *ClientInfo, filt } scnt := len(streams) - if offset < 0 { - offset = 0 - } if offset > scnt { offset = scnt } @@ -8488,9 +8458,6 @@ func (s *Server) jsClusteredConsumerListRequest(acc *Account, ci *ClientInfo, of } ocnt := len(consumers) - if offset < 0 { - offset = 0 - } if offset > ocnt { offset = ocnt } diff --git a/vendor/github.com/nats-io/nats-server/v2/server/leafnode.go b/vendor/github.com/nats-io/nats-server/v2/server/leafnode.go index bd3e26462fa..a6db4a400a0 100644 --- a/vendor/github.com/nats-io/nats-server/v2/server/leafnode.go +++ b/vendor/github.com/nats-io/nats-server/v2/server/leafnode.go @@ -63,9 +63,9 @@ const ( // LEAF connection as opposed to a CLIENT. leafNodeWSPath = "/leafnode" - // When a soliciting leafnode is rejected because it does not meet the - // configured minimum version, delay the next reconnect attempt by this long. - leafNodeMinVersionReconnectDelay = 5 * time.Second + // This is the time the server will wait, when receiving a CONNECT, + // before closing the connection if the required minimum version is not met. + leafNodeWaitBeforeClose = 5 * time.Second ) type leaf struct { @@ -691,8 +691,9 @@ func (s *Server) connectToRemoteLeafNode(remote *leafNodeCfg, firstConnect bool) } else { s.Debugf("Trying to connect as leafnode to remote server on %q%s", rURL.Host, ipStr) - // Check if proxy is configured - if proxyURL != _EMPTY_ { + // Check if proxy is configured first, then check if URL supports it + if proxyURL != _EMPTY_ && isWSURL(rURL) { + // Use proxy for WebSocket connections - use original hostname, resolved IP for connection targetHost := rURL.Host // If URL doesn't include port, add the default port for the scheme if rURL.Port() == _EMPTY_ { @@ -2081,11 +2082,17 @@ func (c *client) processLeafNodeConnect(s *Server, arg []byte, lang string) erro if mv := s.getOpts().LeafNode.MinVersion; mv != _EMPTY_ { major, minor, update, _ := versionComponents(mv) if !versionAtLeast(proto.Version, major, minor, update) { - // Send back an INFO so recent remote servers process the rejection - // cleanly, then close immediately. The soliciting side applies the - // reconnect delay when it processes the error. + // We are going to send back an INFO because otherwise recent + // versions of the remote server would simply break the connection + // after 2 seconds if not receiving it. Instead, we want the + // other side to just "stall" until we finish waiting for the holding + // period and close the connection below. s.sendPermsAndAccountInfo(c) - c.sendErrAndErr(fmt.Sprintf("%s %q", ErrLeafNodeMinVersionRejected, mv)) + c.sendErrAndErr(fmt.Sprintf("connection rejected since minimum version required is %q", mv)) + select { + case <-c.srv.quitCh: + case <-time.After(leafNodeWaitBeforeClose): + } c.closeConnection(MinimumVersionRequired) return ErrMinimumVersionRequired } @@ -3188,11 +3195,6 @@ func (c *client) leafProcessErr(errStr string) { c.Errorf("Leafnode connection dropped with same cluster name error. Delaying attempt to reconnect for %v", delay) return } - if strings.Contains(errStr, ErrLeafNodeMinVersionRejected.Error()) { - _, delay := c.setLeafConnectDelayIfSoliciting(leafNodeMinVersionReconnectDelay) - c.Errorf("Leafnode connection dropped due to minimum version requirement. Delaying attempt to reconnect for %v", delay) - return - } // We will look for Loop detected error coming from the other side. // If we solicit, set the connect delay. @@ -3215,10 +3217,7 @@ func (c *client) setLeafConnectDelayIfSoliciting(delay time.Duration) (string, t } c.leaf.remote.setConnectDelay(delay) } - var accName string - if c.acc != nil { - accName = c.acc.Name - } + accName := c.acc.Name c.mu.Unlock() return accName, delay } diff --git a/vendor/github.com/nats-io/nats-server/v2/server/mqtt.go b/vendor/github.com/nats-io/nats-server/v2/server/mqtt.go index 2ca0230788c..a096da478aa 100644 --- a/vendor/github.com/nats-io/nats-server/v2/server/mqtt.go +++ b/vendor/github.com/nats-io/nats-server/v2/server/mqtt.go @@ -241,7 +241,6 @@ var ( errMQTTUnsupportedCharacters = errors.New("character ' ' not supported for MQTT topics") errMQTTInvalidSession = errors.New("invalid MQTT session") errMQTTInvalidRetainFlags = errors.New("invalid retained message flags") - errMQTTSessionCollision = errors.New("stored session does not match client ID") ) type srvMQTT struct { @@ -261,7 +260,7 @@ type mqttAccountSessionManager struct { sessions map[string]*mqttSession // key is MQTT client ID sessByHash map[string]*mqttSession // key is MQTT client ID hash sessLocked map[string]struct{} // key is MQTT client ID and indicate that a session can not be taken by a new client at this time - flappers map[string]time.Time // When connection connects with client ID already in use + flappers map[string]int64 // When connection connects with client ID already in use flapTimer *time.Timer // Timer to perform some cleanup of the flappers map sl *Sublist // sublist allowing to find retained messages for given subscription retmsgs map[string]*mqttRetainedMsgRef // retained messages @@ -790,17 +789,11 @@ func (c *client) mqttParse(buf []byte) error { } break } - if err = mqttCheckFixedHeaderFlags(pt, b&mqttPacketFlagMask); err != nil { - break - } pl, complete, err = r.readPacketLen() if err != nil || !complete { break } - if err = mqttCheckRemainingLength(pt, pl); err != nil { - break - } switch pt { // Packets that we receive back when we act as the "sender": PUBACK, @@ -965,43 +958,6 @@ func (c *client) mqttParse(buf []byte) error { return err } -func mqttCheckFixedHeaderFlags(packetType, flags byte) error { - var expected byte - switch packetType { - case mqttPacketConnect, mqttPacketPubAck, mqttPacketPubRec, mqttPacketPubComp, - mqttPacketPing, mqttPacketDisconnect: - expected = 0 - case mqttPacketPubRel, mqttPacketSub, mqttPacketUnsub: - expected = 0x2 - case mqttPacketPub: - return nil - default: - return nil - } - if flags != expected { - return fmt.Errorf("invalid fixed header flags %x for packet type %x", flags, packetType) - } - return nil -} - -func mqttCheckRemainingLength(packetType byte, pl int) error { - var expected int - switch packetType { - case mqttPacketConnect, mqttPacketPub, mqttPacketSub, mqttPacketUnsub: - return nil - case mqttPacketPubAck, mqttPacketPubRec, mqttPacketPubRel, mqttPacketPubComp: - expected = 2 - case mqttPacketPing, mqttPacketDisconnect: - expected = 0 - default: - return nil - } - if pl != expected { - return fmt.Errorf("invalid remaining length %d for packet type %x", pl, packetType) - } - return nil -} - func (c *client) mqttTraceMsg(msg []byte) { maxTrace := c.srv.getOpts().MaxTracedMsgLen if maxTrace > 0 && len(msg) > maxTrace { @@ -1218,7 +1174,7 @@ func (s *Server) mqttCreateAccountSessionManager(acc *Account, quitCh chan struc sessions: make(map[string]*mqttSession), sessByHash: make(map[string]*mqttSession), sessLocked: make(map[string]struct{}), - flappers: make(map[string]time.Time), + flappers: make(map[string]int64), jsa: mqttJSA{ id: id, c: c, @@ -2134,7 +2090,7 @@ func (as *mqttAccountSessionManager) processSessionPersist(_ *subscription, pc * // // Lock held on entry. func (as *mqttAccountSessionManager) addSessToFlappers(clientID string) { - as.flappers[clientID] = time.Now() + as.flappers[clientID] = time.Now().UnixNano() if as.flapTimer == nil { as.flapTimer = time.AfterFunc(mqttFlapCleanItvl, func() { as.mu.Lock() @@ -2143,9 +2099,9 @@ func (as *mqttAccountSessionManager) addSessToFlappers(clientID string) { if as.flapTimer == nil { return } - now := time.Now() + now := time.Now().UnixNano() for cID, tm := range as.flappers { - if now.Sub(tm) > mqttSessJailDur { + if now-tm > int64(mqttSessJailDur) { delete(as.flappers, cID) } } @@ -3015,12 +2971,16 @@ func mqttDecodeRetainedMessage(subject string, h, m []byte) (*mqttRetainedMsg, e // Lock not held on entry, but session is in the locked map. func (as *mqttAccountSessionManager) createOrRestoreSession(clientID string, opts *Options) (*mqttSession, bool, error) { jsa := &as.jsa + formatError := func(errTxt string, err error) (*mqttSession, bool, error) { + accName := jsa.c.acc.GetName() + return nil, false, fmt.Errorf("%s for account %q, session %q: %v", errTxt, accName, clientID, err) + } hash := getHash(clientID) smsg, err := jsa.loadSessionMsg(as.domainTk, hash) if err != nil { if isErrorOtherThan(err, JSNoMessageFoundErr) { - return nil, false, fmt.Errorf("loading session record: %w", err) + return formatError("loading session record", err) } // Message not found, so reate the session... // Create a session and indicate that this session did not exist. @@ -3031,10 +2991,7 @@ func (as *mqttAccountSessionManager) createOrRestoreSession(clientID string, opt // We need to recover the existing record now. ps := &mqttPersistedSession{} if err := json.Unmarshal(smsg.Data, ps); err != nil { - return nil, false, fmt.Errorf("unmarshal of session record at sequence %v: %w", smsg.Sequence, err) - } - if ps.ID != clientID { - return nil, false, errMQTTSessionCollision + return formatError(fmt.Sprintf("unmarshal of session record at sequence %v", smsg.Sequence), err) } // Restore this session (even if we don't own it), the caller will do the right thing. @@ -3716,12 +3673,8 @@ func (c *client) mqttParseConnect(r *mqttReader, hasMappings bool) (byte, *mqttC c.mqtt.cid = nuid.Next() } // Spec [MQTT-3.1.3-4] and [MQTT-3.1.3-9] - if err := mqttValidateString(c.mqtt.cid, "client ID"); err != nil { - return mqttConnAckRCIdentifierRejected, nil, err - } else if !isValidName(c.mqtt.cid) { - // Should not contain characters that make it an invalid name for NATS subjects, etc. - err = fmt.Errorf("invalid character in %s %q", "client ID", c.mqtt.cid) - return mqttConnAckRCIdentifierRejected, nil, err + if !utf8.ValidString(c.mqtt.cid) { + return mqttConnAckRCIdentifierRejected, nil, fmt.Errorf("invalid utf8 for client ID: %q", c.mqtt.cid) } if hasWill { @@ -3739,8 +3692,8 @@ func (c *client) mqttParseConnect(r *mqttReader, hasMappings bool) (byte, *mqttC if len(topic) == 0 { return 0, nil, errMQTTEmptyWillTopic } - if err := mqttValidateTopic(topic, "Will topic"); err != nil { - return 0, nil, err + if !utf8.Valid(topic) { + return 0, nil, fmt.Errorf("invalid utf8 for Will topic %q", topic) } // Convert MQTT topic to NATS subject cp.will.subject, err = mqttTopicToNATSPubSubject(topic) @@ -3781,8 +3734,8 @@ func (c *client) mqttParseConnect(r *mqttReader, hasMappings bool) (byte, *mqttC return mqttConnAckRCBadUserOrPassword, nil, errMQTTEmptyUsername } // Spec [MQTT-3.1.3-11] - if err := mqttValidateString(c.opts.Username, "user name"); err != nil { - return mqttConnAckRCBadUserOrPassword, nil, err + if !utf8.ValidString(c.opts.Username) { + return mqttConnAckRCBadUserOrPassword, nil, fmt.Errorf("invalid utf8 for user name %q", c.opts.Username) } } @@ -3792,6 +3745,7 @@ func (c *client) mqttParseConnect(r *mqttReader, hasMappings bool) (byte, *mqttC return 0, nil, err } c.opts.Token = c.opts.Password + c.opts.JWT = c.opts.Password } return 0, cp, nil } @@ -3881,7 +3835,7 @@ CHECK: if tm, ok := asm.flappers[cid]; ok { // If the last time it tried to connect was more than 1 sec ago, // then accept and remove from flappers map. - if time.Since(tm) > mqttSessJailDur { + if time.Now().UnixNano()-tm > int64(mqttSessJailDur) { asm.removeSessFromFlappers(cid) } else { // Will hold this client for a second and then close it. We @@ -3929,19 +3883,13 @@ CHECK: // Do we have an existing session for this client ID es, exists := asm.sessions[cid] asm.mu.Unlock() - formatError := func(err error) error { - return fmt.Errorf("%v for account %q, session %q", err, c.acc.GetName(), cid) - } // The session is not in the map, but may be on disk, so try to recover // or create the stream if not. if !exists { es, exists, err = asm.createOrRestoreSession(cid, s.getOpts()) if err != nil { - if err == errMQTTSessionCollision { - sendConnAck(mqttConnAckRCIdentifierRejected, false) - } - return formatError(err) + return err } } if exists { @@ -4093,9 +4041,6 @@ func (c *client) mqttParsePub(r *mqttReader, pl int, pp *mqttPublish, hasMapping if len(pp.topic) == 0 { return errMQTTTopicIsEmpty } - if err := mqttValidateTopic(pp.topic, "topic"); err != nil { - return err - } // Convert the topic to a NATS subject. This call will also check that // there is no MQTT wildcards (Spec [MQTT-3.3.2-2] and [MQTT-4.7.1-1]) // Note that this may not result in a copy if there is no conversion. @@ -4148,26 +4093,6 @@ func (c *client) mqttParsePub(r *mqttReader, pl int, pp *mqttPublish, hasMapping return nil } -func mqttValidateTopic(topic []byte, field string) error { - if !utf8.Valid(topic) { - return fmt.Errorf("invalid utf8 for %s %q", field, topic) - } - if bytes.IndexByte(topic, 0) >= 0 { - return fmt.Errorf("invalid null character in %s %q", field, topic) - } - return nil -} - -func mqttValidateString(value string, field string) error { - if !utf8.ValidString(value) { - return fmt.Errorf("invalid utf8 for %s %q", field, value) - } - if strings.IndexByte(value, 0) >= 0 { - return fmt.Errorf("invalid null character in %s %q", field, value) - } - return nil -} - func mqttPubTrace(pp *mqttPublish) string { dup := pp.flags&mqttPubFlagDup != 0 qos := mqttGetQoS(pp.flags) @@ -4866,8 +4791,8 @@ func (c *client) mqttParseSubsOrUnsubs(r *mqttReader, b byte, pl int, sub bool) return 0, nil, errMQTTTopicFilterCannotBeEmpty } // Spec [MQTT-3.8.3-1], [MQTT-3.10.3-1] - if err := mqttValidateTopic(topic, "topic filter"); err != nil { - return 0, nil, err + if !utf8.Valid(topic) { + return 0, nil, fmt.Errorf("invalid utf8 for topic filter %q", topic) } var qos byte // We are going to report if we had an error during the conversion, diff --git a/vendor/github.com/nats-io/nats-server/v2/server/msgtrace.go b/vendor/github.com/nats-io/nats-server/v2/server/msgtrace.go index 1cbb6dcbcea..3f995f069ce 100644 --- a/vendor/github.com/nats-io/nats-server/v2/server/msgtrace.go +++ b/vendor/github.com/nats-io/nats-server/v2/server/msgtrace.go @@ -367,13 +367,6 @@ func (c *client) initMsgTrace() *msgTrace { } } dest = getHdrVal(MsgTraceDest) - if c.kind == CLIENT { - if td, ok := c.allowedMsgTraceDest(hdr, false); !ok { - return nil - } else if td != _EMPTY_ { - dest = td - } - } // Check the destination to see if this is a valid public subject. if !IsValidPublishSubject(dest) { // We still have to return a msgTrace object (if traceOnly is set) diff --git a/vendor/github.com/nats-io/nats-server/v2/server/opts.go b/vendor/github.com/nats-io/nats-server/v2/server/opts.go index 3828aa66d30..eac71885e29 100644 --- a/vendor/github.com/nats-io/nats-server/v2/server/opts.go +++ b/vendor/github.com/nats-io/nats-server/v2/server/opts.go @@ -6435,18 +6435,3 @@ func expandPath(p string) (string, error) { return filepath.Join(home, p[1:]), nil } - -// RedactArgs redacts sensitive arguments from the command line. -// For example, turns '--pass=secret' into '--pass=[REDACTED]'. -func RedactArgs(args []string) { - secret := regexp.MustCompile("^-{1,2}(user|pass|auth)(=.*)?$") - for i, arg := range args { - if secret.MatchString(arg) { - if idx := strings.Index(arg, "="); idx != -1 { - args[i] = arg[:idx] + "=[REDACTED]" - } else if i+1 < len(args) { - args[i+1] = "[REDACTED]" - } - } - } -} diff --git a/vendor/github.com/nats-io/nats-server/v2/server/proto.go b/vendor/github.com/nats-io/nats-server/v2/server/proto.go index f757a09e2db..9843fff21b4 100644 --- a/vendor/github.com/nats-io/nats-server/v2/server/proto.go +++ b/vendor/github.com/nats-io/nats-server/v2/server/proto.go @@ -63,14 +63,8 @@ func protoScanFieldValue(typ int, b []byte) (size int, err error) { case 0: _, size, err = protoScanVarint(b) case 5: // fixed32 - if len(b) < 4 { - return 0, errProtoInsufficient - } size = 4 case 1: // fixed64 - if len(b) < 8 { - return 0, errProtoInsufficient - } size = 8 case 2: // length-delimited size, err = protoScanBytes(b) diff --git a/vendor/github.com/nats-io/nats-server/v2/server/raft.go b/vendor/github.com/nats-io/nats-server/v2/server/raft.go index a437b985049..ad260acf08e 100644 --- a/vendor/github.com/nats-io/nats-server/v2/server/raft.go +++ b/vendor/github.com/nats-io/nats-server/v2/server/raft.go @@ -3521,15 +3521,8 @@ func (n *raft) trackResponse(ar *appendEntryResponse) bool { indexUpdateQ.push(ar.index) } - // Ignore items already committed, or skip if this is not about an entry that matches our current term. - if ar.index <= n.commit || ar.term != n.term { - assert.AlwaysOrUnreachable(ar.term <= n.term, "Raft response term mismatch", map[string]any{ - "n.accName": n.accName, - "n.group": n.group, - "n.id": n.id, - "n.term": n.term, - "ar.term": ar.term, - }) + // Ignore items already committed. + if ar.index <= n.commit { return false } @@ -4313,8 +4306,7 @@ func (n *raft) processAppendEntryResponse(ar *appendEntryResponse) { if ar.success { // The remote node successfully committed the append entry. // They agree with our leadership and are happy with the state of the log. - // In this case ar.term was populated with the remote's pterm. If this matches - // our term, we can use it to check for quorum and up our commit. + // In this case ar.term doesn't matter. var err error var committed bool @@ -5032,7 +5024,6 @@ func (n *raft) switchToCandidate() { } // Increment the term. n.term++ - n.vote = noVote // Clear current Leader. n.updateLeader(noLeader) n.switchState(Candidate) diff --git a/vendor/github.com/nats-io/nats-server/v2/server/route.go b/vendor/github.com/nats-io/nats-server/v2/server/route.go index a0384ad35c8..d0c241291e0 100644 --- a/vendor/github.com/nats-io/nats-server/v2/server/route.go +++ b/vendor/github.com/nats-io/nats-server/v2/server/route.go @@ -88,7 +88,7 @@ type route struct { // an implicit route and sending to the remote. gossipMode byte // This will be set in case of pooling so that a route can trigger - // the creation of the next after receiving a PONG, ensuring + // the creation of the next after receiving the first PONG, ensuring // that authentication did not fail. startNewRoute *routeInfo } diff --git a/vendor/github.com/nats-io/nats-server/v2/server/server.go b/vendor/github.com/nats-io/nats-server/v2/server/server.go index aa28534dc10..707f79f6958 100644 --- a/vendor/github.com/nats-io/nats-server/v2/server/server.go +++ b/vendor/github.com/nats-io/nats-server/v2/server/server.go @@ -3452,7 +3452,7 @@ func (s *Server) createClientEx(conn net.Conn, inProcess bool) *client { pre = pre[:n] } conn = &tlsMixConn{conn, bytes.NewBuffer(pre)} - addr, proxyPre, err := readProxyProtoHeader(conn) + addr, err := readProxyProtoHeader(conn) if err != nil && err != errProxyProtoUnrecognized { // err != errProxyProtoUnrecognized implies that we detected a proxy // protocol header but we failed to parse it, so don't continue. @@ -3480,7 +3480,7 @@ func (s *Server) createClientEx(conn net.Conn, inProcess bool) *client { // that it's a non-proxied connection and we want the pre-read to remain // for the next step. if err == nil { - pre = proxyPre + pre = nil } // Because we have ProxyProtocol enabled, our earlier INFO message didn't // include the client_ip. If we need to send it again then we will include diff --git a/vendor/github.com/nats-io/nats-server/v2/server/service_windows.go b/vendor/github.com/nats-io/nats-server/v2/server/service_windows.go index 938d327e04d..62a6c00e87b 100644 --- a/vendor/github.com/nats-io/nats-server/v2/server/service_windows.go +++ b/vendor/github.com/nats-io/nats-server/v2/server/service_windows.go @@ -42,6 +42,7 @@ type winServiceWrapper struct { } var dockerized = false +var startupDelay = 10 * time.Second func init() { if v, exists := os.LookupEnv("NATS_DOCKERIZED"); exists && v == "1" { @@ -66,7 +67,6 @@ func (w *winServiceWrapper) Execute(args []string, changes <-chan svc.ChangeRequ status <- svc.Status{State: svc.StartPending} go w.server.Start() - var startupDelay = 10 * time.Second if v, exists := os.LookupEnv("NATS_STARTUP_DELAY"); exists { if delay, err := time.ParseDuration(v); err == nil { startupDelay = delay @@ -86,32 +86,24 @@ func (w *winServiceWrapper) Execute(args []string, changes <-chan svc.ChangeRequ } loop: - for { - select { - case change, ok := <-changes: - if !ok { - break loop - } - switch change.Cmd { - case svc.Interrogate: - status <- change.CurrentStatus - case svc.Stop, svc.Shutdown: - w.server.Shutdown() - break loop - case reopenLogCmd: - // File log re-open for rotating file logs. - w.server.ReOpenLogFile() - case ldmCmd: - go w.server.lameDuckMode() - case svc.ParamChange: - if err := w.server.Reload(); err != nil { - w.server.Errorf("Failed to reload server configuration: %s", err) - } - default: - w.server.Debugf("Unexpected control request: %v", change.Cmd) - } - case <-w.server.quitCh: + for change := range changes { + switch change.Cmd { + case svc.Interrogate: + status <- change.CurrentStatus + case svc.Stop, svc.Shutdown: + w.server.Shutdown() break loop + case reopenLogCmd: + // File log re-open for rotating file logs. + w.server.ReOpenLogFile() + case ldmCmd: + go w.server.lameDuckMode() + case svc.ParamChange: + if err := w.server.Reload(); err != nil { + w.server.Errorf("Failed to reload server configuration: %s", err) + } + default: + w.server.Debugf("Unexpected control request: %v", change.Cmd) } } diff --git a/vendor/github.com/nats-io/nats-server/v2/server/stream.go b/vendor/github.com/nats-io/nats-server/v2/server/stream.go index 43df7fc564c..1c38729674e 100644 --- a/vendor/github.com/nats-io/nats-server/v2/server/stream.go +++ b/vendor/github.com/nats-io/nats-server/v2/server/stream.go @@ -1830,7 +1830,7 @@ func (s *Server) checkStreamCfg(config *StreamConfig, acc *Account, pedantic boo } } - // check sources for duplicates + // check for duplicates var iNames = make(map[string]struct{}) for _, src := range cfg.Sources { if src == nil || !isValidName(src.Name) { @@ -2235,12 +2235,10 @@ func (jsa *jsAccount) configUpdateCheck(old, new *StreamConfig, s *Server, pedan _, reserved = js.tieredStreamAndReservationCount(acc.Name, tier, &cfg) } // reservation does not account for this stream, hence add the old value - if old.MaxBytes > 0 { - if tier == _EMPTY_ && old.Replicas > 1 { - reserved = addSaturate(reserved, mulSaturate(int64(old.Replicas), old.MaxBytes)) - } else { - reserved = addSaturate(reserved, old.MaxBytes) - } + if tier == _EMPTY_ && old.Replicas > 1 { + reserved += old.MaxBytes * int64(old.Replicas) + } else { + reserved += old.MaxBytes } if err := js.checkAllLimits(&selected, &cfg, reserved, maxBytesOffset); err != nil { return nil, err @@ -2809,12 +2807,6 @@ func (mset *stream) processMirrorMsgs(mirror *sourceInfo, ready *sync.WaitGroup) // Grab stream quit channel. mset.mu.Lock() msgs, qch, siqch := mirror.msgs, mset.qch, mirror.qch - // If the mirror was already canceled before we got here, exit early. - if siqch == nil { - mset.mu.Unlock() - ready.Done() - return - } // Set the last seen as now so that we don't fail at the first check. mirror.last.Store(time.Now().UnixNano()) mset.mu.Unlock() @@ -3420,7 +3412,6 @@ func (mset *stream) setupMirrorConsumer() error { "consumer": mirror.cname, }, ) { - mirror.wg.Done() ready.Done() } } @@ -3983,6 +3974,7 @@ func (mset *stream) processInboundSourceMsg(si *sourceInfo, m *inMsg) bool { } else { err = mset.processJetStreamMsg(m.subj, _EMPTY_, hdr, msg, 0, 0, nil, true, true) } + if err != nil { s := mset.srv if strings.Contains(err.Error(), "no space left") { @@ -3992,35 +3984,31 @@ func (mset *stream) processInboundSourceMsg(si *sourceInfo, m *inMsg) bool { mset.mu.RLock() accName, sname, iName := mset.acc.Name, mset.cfg.Name, si.iname mset.mu.RUnlock() - // Can happen temporarily all the time during normal operations when the sourcing stream is discard new - // (example use case is for sourcing into a work queue) - // TODO - Maybe improve sourcing to WQ with limit and new to use flow control rather than re-creating the consumer. - if errors.Is(err, ErrMaxMsgs) || errors.Is(err, ErrMaxBytes) || errors.Is(err, ErrMaxMsgsPerSubject) { + + // Can happen temporarily all the time during normal operations when the sourcing stream + // is working queue/interest with a limit and discard new. + // TODO - Improve sourcing to WQ with limit and new to use flow control rather than re-creating the consumer. + if errors.Is(err, ErrMaxMsgs) || errors.Is(err, ErrMaxBytes) { // Do not need to do a full retry that includes finding the last sequence in the stream // for that source. Just re-create starting with the seq we couldn't store instead. mset.mu.Lock() mset.retrySourceConsumerAtSeq(iName, si.sseq) mset.mu.Unlock() } else { - // Log some warning for errors other than errLastSeqMismatch. - if !errors.Is(err, errLastSeqMismatch) && !errors.Is(err, errMsgIdDuplicate) { + // Log some warning for errors other than errLastSeqMismatch or errMaxMsgs. + if !errors.Is(err, errLastSeqMismatch) { s.RateLimitWarnf("Error processing inbound source %q for '%s' > '%s': %v", iName, accName, sname, err) } - // Retry in all type of errors we do not want to skip if we are still leader. + // Retry in all type of errors if we are still leader. if mset.isLeader() { - if !errors.Is(err, errMsgIdDuplicate) { - // This will make sure the source is still in mset.sources map, - // find the last sequence and then call setupSourceConsumer. - iNameMap := map[string]struct{}{iName: {}} - mset.setStartingSequenceForSources(iNameMap) - mset.mu.Lock() - mset.retrySourceConsumerAtSeq(iName, si.sseq+1) - mset.mu.Unlock() - } else { - // skipping the message but keep processing the rest of the batch - return true - } + // This will make sure the source is still in mset.sources map, + // find the last sequence and then call setupSourceConsumer. + iNameMap := map[string]struct{}{iName: {}} + mset.setStartingSequenceForSources(iNameMap) + mset.mu.Lock() + mset.retrySourceConsumerAtSeq(iName, si.sseq+1) + mset.mu.Unlock() } } } @@ -5415,7 +5403,6 @@ func (mset *stream) getDirectRequest(req *JSApiMsgGetRequest, reply string) { // processInboundJetStreamMsg handles processing messages bound for a stream. func (mset *stream) processInboundJetStreamMsg(_ *subscription, c *client, _ *Account, subject, reply string, rmsg []byte) { hdr, msg := c.msgParts(copyBytes(rmsg)) // Need to copy. - hdr = removeHeaderStatusIfPresent(hdr) if mt, traceOnly := c.isMsgTraceEnabled(); mt != nil { // If message is delivered, we need to disable the message trace headers // to prevent a trace event to be generated when a stored message diff --git a/vendor/github.com/nats-io/nats-server/v2/server/util.go b/vendor/github.com/nats-io/nats-server/v2/server/util.go index ff90838bb8c..3a31619cf3c 100644 --- a/vendor/github.com/nats-io/nats-server/v2/server/util.go +++ b/vendor/github.com/nats-io/nats-server/v2/server/util.go @@ -20,7 +20,6 @@ import ( "errors" "fmt" "math" - "math/bits" "net" "net/url" "reflect" @@ -364,23 +363,3 @@ func parallelTaskQueue(mp int) chan<- func() { } return tq } - -// addSaturate returns a + b, saturating at math.MaxInt64. -// Both a and b must be non-negative. -func addSaturate(a, b int64) int64 { - sum, carry := bits.Add64(uint64(a), uint64(b), 0) - if carry != 0 || sum > uint64(math.MaxInt64) { - return math.MaxInt64 - } - return int64(sum) -} - -// mulSaturate returns a * b, saturating at math.MaxInt64. -// Both a and b must be non-negative. -func mulSaturate(a, b int64) int64 { - hi, lo := bits.Mul64(uint64(a), uint64(b)) - if hi != 0 || lo > uint64(math.MaxInt64) { - return math.MaxInt64 - } - return int64(lo) -} diff --git a/vendor/github.com/nats-io/nats-server/v2/server/websocket.go b/vendor/github.com/nats-io/nats-server/v2/server/websocket.go index 0ee1ca7db90..fc77c374085 100644 --- a/vendor/github.com/nats-io/nats-server/v2/server/websocket.go +++ b/vendor/github.com/nats-io/nats-server/v2/server/websocket.go @@ -60,8 +60,6 @@ const ( wsMaxControlPayloadSize = 125 wsFrameSizeForBrowsers = 4096 // From experiment, webrowsers behave better with limited frame size wsCompressThreshold = 64 // Don't compress for small buffer(s) - wsMaxMsgPayloadMultiple = 8 - wsMaxMsgPayloadLimit = 64 * 1024 * 1024 wsCloseSatusSize = 2 // From https://tools.ietf.org/html/rfc6455#section-11.7 @@ -182,21 +180,6 @@ func (r *wsReadInfo) resetCompressedState() { r.csz = 0 } -// Compressed WebSocket messages have to be accumulated before they can be -// decompressed and handed to the parser, so this transport limit needs to -// allow batching several max_payload-sized NATS operations while still -// capping resource usage on the buffered compressed path. -func wsMaxMessageSize(mpay int) uint64 { - if mpay <= 0 { - mpay = MAX_PAYLOAD_SIZE - } - limit := uint64(mpay) * wsMaxMsgPayloadMultiple - if limit > wsMaxMsgPayloadLimit { - limit = wsMaxMsgPayloadLimit - } - return limit -} - // Returns a slice containing `needed` bytes from the given buffer `buf` // starting at position `pos`, and possibly read from the given reader `r`. // When bytes are present in `buf`, the `pos` is incremented by the number @@ -234,44 +217,17 @@ func (c *client) isWebsocket() bool { // // Client lock MUST NOT be held on entry. func (c *client) wsRead(r *wsReadInfo, ior io.Reader, buf []byte) ([][]byte, error) { - var bufs [][]byte - err := c.wsReadLoop(r, ior, buf, func(b []byte, compressed, final bool) error { - if compressed { - return errors.New("compressed websocket frames require wsReadAndParse") - } - bufs = append(bufs, b) - return nil - }) - return bufs, err -} - -func (c *client) wsReadAndParse(r *wsReadInfo, ior io.Reader, buf []byte) error { - mpay := int(atomic.LoadInt32(&c.mpay)) - if mpay <= 0 { - mpay = MAX_PAYLOAD_SIZE - } - return c.wsReadLoop(r, ior, buf, func(b []byte, compressed, final bool) error { - if compressed { - if err := c.wsDecompressAndParse(r, b, final, mpay); err != nil { - r.resetCompressedState() - return err - } - if final { - r.fc = false - } - return nil - } - return c.parse(b) - }) -} - -func (c *client) wsReadLoop(r *wsReadInfo, ior io.Reader, buf []byte, handle func([]byte, bool, bool) error) error { var ( + bufs [][]byte tmpBuf []byte err error pos uint64 max = uint64(len(buf)) + mpay = int(atomic.LoadInt32(&c.mpay)) ) + if mpay <= 0 { + mpay = MAX_PAYLOAD_SIZE + } for pos != max { if r.fs { b0 := buf[pos] @@ -279,23 +235,23 @@ func (c *client) wsReadLoop(r *wsReadInfo, ior io.Reader, buf []byte, handle fun final := b0&wsFinalBit != 0 compressed := b0&wsRsv1Bit != 0 if b0&(wsRsv2Bit|wsRsv3Bit) != 0 { - return c.wsHandleProtocolError("RSV2 and RSV3 must be clear") + return bufs, c.wsHandleProtocolError("RSV2 and RSV3 must be clear") } if compressed && !c.ws.compress { - return c.wsHandleProtocolError("compressed frame received without negotiated permessage-deflate") + return bufs, c.wsHandleProtocolError("compressed frame received without negotiated permessage-deflate") } pos++ tmpBuf, pos, err = wsGet(ior, buf, pos, 1) if err != nil { - return err + return bufs, err } b1 := tmpBuf[0] // Clients MUST set the mask bit. If not set, reject. // However, LEAF by default will not have masking, unless they are forced to, by configuration. if r.mask && b1&wsMaskBit == 0 { - return c.wsHandleProtocolError("mask bit missing") + return bufs, c.wsHandleProtocolError("mask bit missing") } // Store size in case it is < 125 @@ -304,46 +260,46 @@ func (c *client) wsReadLoop(r *wsReadInfo, ior io.Reader, buf []byte, handle fun switch frameType { case wsPingMessage, wsPongMessage, wsCloseMessage: if r.rem > wsMaxControlPayloadSize { - return c.wsHandleProtocolError( + return bufs, c.wsHandleProtocolError( fmt.Sprintf("control frame length bigger than maximum allowed of %v bytes", wsMaxControlPayloadSize)) } if !final { - return c.wsHandleProtocolError("control frame does not have final bit set") + return bufs, c.wsHandleProtocolError("control frame does not have final bit set") } if compressed { - return c.wsHandleProtocolError("control frame must not be compressed") + return bufs, c.wsHandleProtocolError("control frame must not be compressed") } case wsTextMessage, wsBinaryMessage: if !r.ff { - return c.wsHandleProtocolError("new message started before final frame for previous message was received") + return bufs, c.wsHandleProtocolError("new message started before final frame for previous message was received") } r.ff = final r.fc = compressed case wsContinuationFrame: // Compressed bit must be only set in the first frame if r.ff || compressed { - return c.wsHandleProtocolError("invalid continuation frame") + return bufs, c.wsHandleProtocolError("invalid continuation frame") } r.ff = final default: - return c.wsHandleProtocolError(fmt.Sprintf("unknown opcode %v", frameType)) + return bufs, c.wsHandleProtocolError(fmt.Sprintf("unknown opcode %v", frameType)) } switch r.rem { case 126: tmpBuf, pos, err = wsGet(ior, buf, pos, 2) if err != nil { - return err + return bufs, err } r.rem = uint64(binary.BigEndian.Uint16(tmpBuf)) case 127: tmpBuf, pos, err = wsGet(ior, buf, pos, 8) if err != nil { - return err + return bufs, err } if r.rem = binary.BigEndian.Uint64(tmpBuf); r.rem&(uint64(1)<<63) != 0 { - return c.wsHandleProtocolError("invalid 64-bit payload length") + return bufs, c.wsHandleProtocolError("invalid 64-bit payload length") } } @@ -351,7 +307,7 @@ func (c *client) wsReadLoop(r *wsReadInfo, ior io.Reader, buf []byte, handle fun // Read masking key tmpBuf, pos, err = wsGet(ior, buf, pos, 4) if err != nil { - return err + return bufs, err } copy(r.mkey[:], tmpBuf) r.mkpos = 0 @@ -361,7 +317,7 @@ func (c *client) wsReadLoop(r *wsReadInfo, ior io.Reader, buf []byte, handle fun if wsIsControlFrame(frameType) { pos, err = c.wsHandleControlFrame(r, frameType, ior, buf, pos) if err != nil { - return err + return bufs, err } continue } @@ -370,26 +326,59 @@ func (c *client) wsReadLoop(r *wsReadInfo, ior io.Reader, buf []byte, handle fun r.fs = false } if pos < max { - n := r.rem + var b []byte + var n uint64 + + n = r.rem if pos+n > max { n = max - pos } - b := buf[pos : pos+n] + b = buf[pos : pos+n] pos += n r.rem -= n // If needed, unmask the buffer if r.mask { r.unmask(b) } - if err := handle(b, r.fc, r.ff && r.rem == 0); err != nil { - return err + addToBufs := true + // Handle compressed message + if r.fc { + // Assume that we may have continuation frames or not the full payload. + addToBufs = false + if r.csz+uint64(len(b)) > uint64(mpay) { + r.resetCompressedState() + return bufs, ErrMaxPayload + } + // Make a copy of the buffer before adding it to the list + // of compressed fragments. + r.cbufs = append(r.cbufs, append([]byte(nil), b...)) + r.csz += uint64(len(b)) + // When we have the final frame and we have read the full payload, + // we can decompress it. + if r.ff && r.rem == 0 { + b, err = r.decompress(mpay) + if err != nil { + r.resetCompressedState() + return bufs, err + } + r.fc = false + // Now we can add to `bufs` + addToBufs = true + } } + // For non compressed frames, or when we have decompressed the + // whole message. + if addToBufs { + bufs = append(bufs, b) + } + // If payload has been fully read, then indicate that next + // is the start of a frame. if r.rem == 0 { r.fs = true } } } - return nil + return bufs, nil } func (r *wsReadInfo) Read(dst []byte) (int, error) { @@ -445,65 +434,45 @@ func (r *wsReadInfo) ReadByte() (byte, error) { return b, nil } -func (c *client) wsDecompressAndParse(r *wsReadInfo, b []byte, final bool, mpay int) error { - limit := wsMaxMessageSize(mpay) - if len(b) > 0 { - if r.csz+uint64(len(b)) > limit { - return ErrMaxPayload - } - r.cbufs = append(r.cbufs, append([]byte(nil), b...)) - r.csz += uint64(len(b)) +// decompress decompresses the collected buffers. +// The size of the decompressed buffer will be limited to the `mpay` value. +// If, while decompressing, the resulting uncompressed buffer exceeds this +// limit, the decompression stops and an empty buffer and the ErrMaxPayload +// error are returned. +func (r *wsReadInfo) decompress(mpay int) ([]byte, error) { + // If not limit is specified, use the default maximum payload size. + if mpay <= 0 { + mpay = MAX_PAYLOAD_SIZE } - if !final { - return nil - } - if r.csz+uint64(len(compressLastBlock)) > limit { - return ErrMaxPayload - } - r.cbufs = append(r.cbufs, compressLastBlock) - r.csz += uint64(len(compressLastBlock)) r.coff = 0 + // As per https://tools.ietf.org/html/rfc7692#section-7.2.2 + // add 0x00, 0x00, 0xff, 0xff and then a final block so that flate reader + // does not report unexpected EOF. + r.cbufs = append(r.cbufs, compressLastBlock) + // Get a decompressor from the pool and bind it to this object (wsReadInfo) + // that provides Read() and ReadByte() APIs that will consume the compressed + // buffers (r.cbufs). d, _ := decompressorPool.Get().(io.ReadCloser) if d == nil { d = flate.NewReader(r) } else { d.(flate.Resetter).Reset(r, nil) } - defer func() { - d.Close() - decompressorPool.Put(d) - r.cbufs = nil - r.coff = 0 - r.csz = 0 - }() + // Use a LimitedReader to limit the decompressed size. + // We use "limit+1" bytes for "N" so we can detect if the limit is exceeded. lr := io.LimitedReader{R: d, N: int64(mpay + 1)} - buf := make([]byte, 32*1024) - total := 0 - for { - n, err := lr.Read(buf) - if n > 0 { - pn := n - if total+n > mpay { - pn = mpay - total - } - if pn > 0 { - if err := c.parse(buf[:pn]); err != nil { - return err - } - } - total += n - if total > mpay { - return ErrMaxPayload - } - } - if err == nil { - continue - } - if err == io.EOF { - return nil - } - return err + b, err := io.ReadAll(&lr) + if err == nil && len(b) > mpay { + // Decompressed data exceeds the maximum payload size. + b, err = nil, ErrMaxPayload } + lr.R = nil + decompressorPool.Put(d) + // Now reset the compressed buffers list. + r.cbufs = nil + r.coff = 0 + r.csz = 0 + return b, err } // Handles the PING, PONG and CLOSE websocket control frames. diff --git a/vendor/golang.org/x/crypto/ssh/agent/server.go b/vendor/golang.org/x/crypto/ssh/agent/server.go index 2a7658cf75c..4e8ff86b619 100644 --- a/vendor/golang.org/x/crypto/ssh/agent/server.go +++ b/vendor/golang.org/x/crypto/ssh/agent/server.go @@ -36,7 +36,7 @@ func (s *server) processRequestBytes(reqData []byte) []byte { return []byte{agentFailure} } - if rep == nil { + if err == nil && rep == nil { return []byte{agentSuccess} } diff --git a/vendor/golang.org/x/net/html/iter.go b/vendor/golang.org/x/net/html/iter.go index 349ef73e64e..54be8fd30fd 100644 --- a/vendor/golang.org/x/net/html/iter.go +++ b/vendor/golang.org/x/net/html/iter.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build go1.23 + package html import "iter" diff --git a/vendor/golang.org/x/net/html/node.go b/vendor/golang.org/x/net/html/node.go index 253e4679c71..77741a1950e 100644 --- a/vendor/golang.org/x/net/html/node.go +++ b/vendor/golang.org/x/net/html/node.go @@ -11,7 +11,6 @@ import ( // A NodeType is the type of a Node. type NodeType uint32 -//go:generate stringer -type NodeType const ( ErrorNode NodeType = iota TextNode diff --git a/vendor/golang.org/x/net/html/nodetype_string.go b/vendor/golang.org/x/net/html/nodetype_string.go deleted file mode 100644 index 8253af4915f..00000000000 --- a/vendor/golang.org/x/net/html/nodetype_string.go +++ /dev/null @@ -1,31 +0,0 @@ -// Code generated by "stringer -type NodeType"; DO NOT EDIT. - -package html - -import "strconv" - -func _() { - // An "invalid array index" compiler error signifies that the constant values have changed. - // Re-run the stringer command to generate them again. - var x [1]struct{} - _ = x[ErrorNode-0] - _ = x[TextNode-1] - _ = x[DocumentNode-2] - _ = x[ElementNode-3] - _ = x[CommentNode-4] - _ = x[DoctypeNode-5] - _ = x[RawNode-6] - _ = x[scopeMarkerNode-7] -} - -const _NodeType_name = "ErrorNodeTextNodeDocumentNodeElementNodeCommentNodeDoctypeNodeRawNodescopeMarkerNode" - -var _NodeType_index = [...]uint8{0, 9, 17, 29, 40, 51, 62, 69, 84} - -func (i NodeType) String() string { - idx := int(i) - 0 - if i < 0 || idx >= len(_NodeType_index)-1 { - return "NodeType(" + strconv.FormatInt(int64(i), 10) + ")" - } - return _NodeType_name[_NodeType_index[idx]:_NodeType_index[idx+1]] -} diff --git a/vendor/golang.org/x/net/http2/client_priority_go126.go b/vendor/golang.org/x/net/http2/client_priority_go126.go deleted file mode 100644 index 80af000b094..00000000000 --- a/vendor/golang.org/x/net/http2/client_priority_go126.go +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright 2026 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -//go:build !go1.27 - -package http2 - -import "net/http" - -// Support for go.dev/issue/75500 is added in Go 1.27. In case anyone uses -// x/net with versions before Go 1.27, we return true here so that their write -// scheduler will still be the round-robin write scheduler rather than the RFC -// 9218 write scheduler. That way, older users of Go will not see a sudden -// change of behavior just from importing x/net. -// -// TODO(nsh): remove this file after x/net go.mod is at Go 1.27. -func clientPriorityDisabled(_ *http.Server) bool { - return true -} diff --git a/vendor/golang.org/x/net/http2/client_priority_go127.go b/vendor/golang.org/x/net/http2/client_priority_go127.go deleted file mode 100644 index 817d01b0573..00000000000 --- a/vendor/golang.org/x/net/http2/client_priority_go127.go +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright 2026 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -//go:build go1.27 - -package http2 - -import "net/http" - -func clientPriorityDisabled(s *http.Server) bool { - return s.DisableClientPriority -} diff --git a/vendor/golang.org/x/net/http2/frame.go b/vendor/golang.org/x/net/http2/frame.go index be75badcc0e..9a4bd123c95 100644 --- a/vendor/golang.org/x/net/http2/frame.go +++ b/vendor/golang.org/x/net/http2/frame.go @@ -11,13 +11,11 @@ import ( "fmt" "io" "log" - "slices" "strings" "sync" "golang.org/x/net/http/httpguts" "golang.org/x/net/http2/hpack" - "golang.org/x/net/internal/httpsfv" ) const frameHeaderLen = 9 @@ -25,36 +23,33 @@ const frameHeaderLen = 9 var padZeros = make([]byte, 255) // zeros for padding // A FrameType is a registered frame type as defined in -// https://httpwg.org/specs/rfc7540.html#rfc.section.11.2 and other future -// RFCs. +// https://httpwg.org/specs/rfc7540.html#rfc.section.11.2 type FrameType uint8 const ( - FrameData FrameType = 0x0 - FrameHeaders FrameType = 0x1 - FramePriority FrameType = 0x2 - FrameRSTStream FrameType = 0x3 - FrameSettings FrameType = 0x4 - FramePushPromise FrameType = 0x5 - FramePing FrameType = 0x6 - FrameGoAway FrameType = 0x7 - FrameWindowUpdate FrameType = 0x8 - FrameContinuation FrameType = 0x9 - FramePriorityUpdate FrameType = 0x10 + FrameData FrameType = 0x0 + FrameHeaders FrameType = 0x1 + FramePriority FrameType = 0x2 + FrameRSTStream FrameType = 0x3 + FrameSettings FrameType = 0x4 + FramePushPromise FrameType = 0x5 + FramePing FrameType = 0x6 + FrameGoAway FrameType = 0x7 + FrameWindowUpdate FrameType = 0x8 + FrameContinuation FrameType = 0x9 ) var frameNames = [...]string{ - FrameData: "DATA", - FrameHeaders: "HEADERS", - FramePriority: "PRIORITY", - FrameRSTStream: "RST_STREAM", - FrameSettings: "SETTINGS", - FramePushPromise: "PUSH_PROMISE", - FramePing: "PING", - FrameGoAway: "GOAWAY", - FrameWindowUpdate: "WINDOW_UPDATE", - FrameContinuation: "CONTINUATION", - FramePriorityUpdate: "PRIORITY_UPDATE", + FrameData: "DATA", + FrameHeaders: "HEADERS", + FramePriority: "PRIORITY", + FrameRSTStream: "RST_STREAM", + FrameSettings: "SETTINGS", + FramePushPromise: "PUSH_PROMISE", + FramePing: "PING", + FrameGoAway: "GOAWAY", + FrameWindowUpdate: "WINDOW_UPDATE", + FrameContinuation: "CONTINUATION", } func (t FrameType) String() string { @@ -130,24 +125,21 @@ var flagName = map[FrameType]map[Flags]string{ type frameParser func(fc *frameCache, fh FrameHeader, countError func(string), payload []byte) (Frame, error) var frameParsers = [...]frameParser{ - FrameData: parseDataFrame, - FrameHeaders: parseHeadersFrame, - FramePriority: parsePriorityFrame, - FrameRSTStream: parseRSTStreamFrame, - FrameSettings: parseSettingsFrame, - FramePushPromise: parsePushPromise, - FramePing: parsePingFrame, - FrameGoAway: parseGoAwayFrame, - FrameWindowUpdate: parseWindowUpdateFrame, - FrameContinuation: parseContinuationFrame, - FramePriorityUpdate: parsePriorityUpdateFrame, + FrameData: parseDataFrame, + FrameHeaders: parseHeadersFrame, + FramePriority: parsePriorityFrame, + FrameRSTStream: parseRSTStreamFrame, + FrameSettings: parseSettingsFrame, + FramePushPromise: parsePushPromise, + FramePing: parsePingFrame, + FrameGoAway: parseGoAwayFrame, + FrameWindowUpdate: parseWindowUpdateFrame, + FrameContinuation: parseContinuationFrame, } func typeFrameParser(t FrameType) frameParser { if int(t) < len(frameParsers) { - if f := frameParsers[t]; f != nil { - return f - } + return frameParsers[t] } return parseUnknownFrame } @@ -1188,34 +1180,9 @@ type PriorityFrame struct { PriorityParam } -// defaultRFC9218Priority determines what priority we should use as the default -// value. -// -// According to RFC 9218, by default, streams should be given an urgency of 3 -// and should be non-incremental. However, making streams non-incremental by -// default would be a huge change to our historical behavior where we would -// round-robin writes across streams. When streams are non-incremental, we -// would process streams of the same urgency one-by-one to completion instead. -// -// To avoid such a sudden change which might break some HTTP/2 users, this -// function allows the caller to specify whether they can actually use the -// default value as specified in RFC 9218. If not, this function will return a -// priority value where streams are incremental by default instead: effectively -// a round-robin between stream of the same urgency. -// -// As an example, a server might not be able to use the RFC 9218 default value -// when it's not sure that the client it is serving is aware of RFC 9218. -func defaultRFC9218Priority(canUseDefault bool) PriorityParam { - if canUseDefault { - return PriorityParam{ - urgency: 3, - incremental: 0, - } - } - return PriorityParam{ - urgency: 3, - incremental: 1, - } +var defaultRFC9218Priority = PriorityParam{ + incremental: 0, + urgency: 3, } // Note that HTTP/2 has had two different prioritization schemes, and @@ -1299,74 +1266,6 @@ func (f *Framer) WritePriority(streamID uint32, p PriorityParam) error { return f.endWrite() } -// PriorityUpdateFrame is a PRIORITY_UPDATE frame as described in -// https://www.rfc-editor.org/rfc/rfc9218.html#name-the-priority_update-frame. -type PriorityUpdateFrame struct { - FrameHeader - Priority string - PrioritizedStreamID uint32 -} - -func parseRFC9218Priority(s string, canUseDefault bool) (p PriorityParam, ok bool) { - p = defaultRFC9218Priority(canUseDefault) - ok = httpsfv.ParseDictionary(s, func(key, val, _ string) { - switch key { - case "u": - if u, ok := httpsfv.ParseInteger(val); ok && u >= 0 && u <= 7 { - p.urgency = uint8(u) - } - case "i": - if i, ok := httpsfv.ParseBoolean(val); ok { - if i { - p.incremental = 1 - } else { - p.incremental = 0 - } - } - } - }) - if !ok { - return defaultRFC9218Priority(canUseDefault), ok - } - return p, true -} - -func parsePriorityUpdateFrame(_ *frameCache, fh FrameHeader, countError func(string), payload []byte) (Frame, error) { - if fh.StreamID != 0 { - countError("frame_priority_update_non_zero_stream") - return nil, connError{ErrCodeProtocol, "PRIORITY_UPDATE frame with non-zero stream ID"} - } - if len(payload) < 4 { - countError("frame_priority_update_bad_length") - return nil, connError{ErrCodeFrameSize, fmt.Sprintf("PRIORITY_UPDATE frame payload size was %d; want at least 4", len(payload))} - } - v := binary.BigEndian.Uint32(payload[:4]) - streamID := v & 0x7fffffff // mask off high bit - if streamID == 0 { - countError("frame_priority_update_prioritizing_zero_stream") - return nil, connError{ErrCodeProtocol, "PRIORITY_UPDATE frame with prioritized stream ID of zero"} - } - return &PriorityUpdateFrame{ - FrameHeader: fh, - PrioritizedStreamID: streamID, - Priority: string(payload[4:]), - }, nil -} - -// WritePriorityUpdate writes a PRIORITY_UPDATE frame. -// -// It will perform exactly one Write to the underlying Writer. -// It is the caller's responsibility to not call other Write methods concurrently. -func (f *Framer) WritePriorityUpdate(streamID uint32, priority string) error { - if !validStreamID(streamID) && !f.AllowIllegalWrites { - return errStreamID - } - f.startWrite(FramePriorityUpdate, 0, 0) - f.writeUint32(streamID) - f.writeBytes([]byte(priority)) - return f.endWrite() -} - // A RSTStreamFrame allows for abnormal termination of a stream. // See https://httpwg.org/specs/rfc7540.html#rfc.section.6.4 type RSTStreamFrame struct { @@ -1648,23 +1547,6 @@ func (mh *MetaHeadersFrame) PseudoFields() []hpack.HeaderField { return mh.Fields } -func (mh *MetaHeadersFrame) rfc9218Priority(priorityAware bool) (p PriorityParam, priorityAwareAfter, hasIntermediary bool) { - var s string - for _, field := range mh.Fields { - if field.Name == "priority" { - s = field.Value - priorityAware = true - } - if slices.Contains([]string{"via", "forwarded", "x-forwarded-for"}, field.Name) { - hasIntermediary = true - } - } - // No need to check for ok. parseRFC9218Priority will return a default - // value if there is no priority field or if the field cannot be parsed. - p, _ = parseRFC9218Priority(s, priorityAware && !hasIntermediary) - return p, priorityAware, hasIntermediary -} - func (mh *MetaHeadersFrame) checkPseudos() error { var isRequest, isResponse bool pf := mh.PseudoFields() diff --git a/vendor/golang.org/x/net/http2/http2.go b/vendor/golang.org/x/net/http2/http2.go index 6320f4eb4c1..105fe12fefa 100644 --- a/vendor/golang.org/x/net/http2/http2.go +++ b/vendor/golang.org/x/net/http2/http2.go @@ -169,7 +169,6 @@ const ( SettingMaxFrameSize SettingID = 0x5 SettingMaxHeaderListSize SettingID = 0x6 SettingEnableConnectProtocol SettingID = 0x8 - SettingNoRFC7540Priorities SettingID = 0x9 ) var settingName = map[SettingID]string{ @@ -180,7 +179,6 @@ var settingName = map[SettingID]string{ SettingMaxFrameSize: "MAX_FRAME_SIZE", SettingMaxHeaderListSize: "MAX_HEADER_LIST_SIZE", SettingEnableConnectProtocol: "ENABLE_CONNECT_PROTOCOL", - SettingNoRFC7540Priorities: "NO_RFC7540_PRIORITIES", } func (s SettingID) String() string { diff --git a/vendor/golang.org/x/net/http2/server.go b/vendor/golang.org/x/net/http2/server.go index 7ef807f79df..bdc5520ebd3 100644 --- a/vendor/golang.org/x/net/http2/server.go +++ b/vendor/golang.org/x/net/http2/server.go @@ -472,13 +472,10 @@ func (s *Server) serveConn(c net.Conn, opts *ServeConnOpts, newf func(*serverCon sc.conn.SetWriteDeadline(time.Time{}) } - switch { - case s.NewWriteScheduler != nil: + if s.NewWriteScheduler != nil { sc.writeSched = s.NewWriteScheduler() - case clientPriorityDisabled(http1srv): + } else { sc.writeSched = newRoundRobinWriteScheduler() - default: - sc.writeSched = newPriorityWriteSchedulerRFC9218() } // These start at the RFC-specified defaults. If there is a higher @@ -651,23 +648,6 @@ type serverConn struct { // Used by startGracefulShutdown. shutdownOnce sync.Once - - // Used for RFC 9218 prioritization. - hasIntermediary bool // connection is done via an intermediary / proxy - priorityAware bool // the client has sent priority signal, meaning that it is aware of it. -} - -func (sc *serverConn) writeSchedIgnoresRFC7540() bool { - switch sc.writeSched.(type) { - case *priorityWriteSchedulerRFC9218: - return true - case *randomWriteScheduler: - return true - case *roundRobinWriteScheduler: - return true - default: - return false - } } func (sc *serverConn) maxHeaderListSize() uint32 { @@ -958,9 +938,6 @@ func (sc *serverConn) serve(conf http2Config) { if !disableExtendedConnectProtocol { settings = append(settings, Setting{SettingEnableConnectProtocol, 1}) } - if sc.writeSchedIgnoresRFC7540() { - settings = append(settings, Setting{SettingNoRFC7540Priorities, 1}) - } sc.writeFrame(FrameWriteRequest{ write: settings, }) @@ -1646,8 +1623,6 @@ func (sc *serverConn) processFrame(f Frame) error { // A client cannot push. Thus, servers MUST treat the receipt of a PUSH_PROMISE // frame as a connection error (Section 5.4.1) of type PROTOCOL_ERROR. return sc.countError("push_promise", ConnectionError(ErrCodeProtocol)) - case *PriorityUpdateFrame: - return sc.processPriorityUpdate(f) default: sc.vlogf("http2: server ignoring frame: %v", f.Header()) return nil @@ -1828,10 +1803,6 @@ func (sc *serverConn) processSetting(s Setting) error { case SettingEnableConnectProtocol: // Receipt of this parameter by a server does not // have any impact - case SettingNoRFC7540Priorities: - if s.Val > 1 { - return ConnectionError(ErrCodeProtocol) - } default: // Unknown setting: "An endpoint that receives a SETTINGS // frame with any unknown or unsupported identifier MUST @@ -2102,33 +2073,13 @@ func (sc *serverConn) processHeaders(f *MetaHeadersFrame) error { if f.StreamEnded() { initialState = stateHalfClosedRemote } - - // We are handling two special cases here: - // 1. When a request is sent via an intermediary, we force priority to be - // u=3,i. This is essentially a round-robin behavior, and is done to ensure - // fairness between, for example, multiple clients using the same proxy. - // 2. Until a client has shown that it is aware of RFC 9218, we make its - // streams non-incremental by default. This is done to preserve the - // historical behavior of handling streams in a round-robin manner, rather - // than one-by-one to completion. - initialPriority := defaultRFC9218Priority(sc.priorityAware && !sc.hasIntermediary) - if _, ok := sc.writeSched.(*priorityWriteSchedulerRFC9218); ok && !sc.hasIntermediary { - headerPriority, priorityAware, hasIntermediary := f.rfc9218Priority(sc.priorityAware) - initialPriority = headerPriority - sc.hasIntermediary = hasIntermediary - if priorityAware { - sc.priorityAware = true - } - } - st := sc.newStream(id, 0, initialState, initialPriority) + st := sc.newStream(id, 0, initialState) if f.HasPriority() { if err := sc.checkPriority(f.StreamID, f.Priority); err != nil { return err } - if !sc.writeSchedIgnoresRFC7540() { - sc.writeSched.AdjustStream(st.id, f.Priority) - } + sc.writeSched.AdjustStream(st.id, f.Priority) } rw, req, err := sc.newWriterAndRequest(st, f) @@ -2169,7 +2120,7 @@ func (sc *serverConn) upgradeRequest(req *http.Request) { sc.serveG.check() id := uint32(1) sc.maxClientStreamID = id - st := sc.newStream(id, 0, stateHalfClosedRemote, defaultRFC9218Priority(sc.priorityAware && !sc.hasIntermediary)) + st := sc.newStream(id, 0, stateHalfClosedRemote) st.reqTrailer = req.Trailer if st.reqTrailer != nil { st.trailer = make(http.Header) @@ -2234,32 +2185,11 @@ func (sc *serverConn) processPriority(f *PriorityFrame) error { if err := sc.checkPriority(f.StreamID, f.PriorityParam); err != nil { return err } - // We need to avoid calling AdjustStream when using the RFC 9218 write - // scheduler. Otherwise, incremental's zero value in PriorityParam will - // unexpectedly make all streams non-incremental. This causes us to process - // streams one-by-one to completion rather than doing it in a round-robin - // manner (the historical behavior), which might be unexpected to users. - if sc.writeSchedIgnoresRFC7540() { - return nil - } sc.writeSched.AdjustStream(f.StreamID, f.PriorityParam) return nil } -func (sc *serverConn) processPriorityUpdate(f *PriorityUpdateFrame) error { - sc.priorityAware = true - if _, ok := sc.writeSched.(*priorityWriteSchedulerRFC9218); !ok { - return nil - } - p, ok := parseRFC9218Priority(f.Priority, sc.priorityAware) - if !ok { - return sc.countError("unparsable_priority_update", streamError(f.PrioritizedStreamID, ErrCodeProtocol)) - } - sc.writeSched.AdjustStream(f.PrioritizedStreamID, p) - return nil -} - -func (sc *serverConn) newStream(id, pusherID uint32, state streamState, priority PriorityParam) *stream { +func (sc *serverConn) newStream(id, pusherID uint32, state streamState) *stream { sc.serveG.check() if id == 0 { panic("internal error: cannot create stream with id 0") @@ -2282,7 +2212,7 @@ func (sc *serverConn) newStream(id, pusherID uint32, state streamState, priority } sc.streams[id] = st - sc.writeSched.OpenStream(st.id, OpenStreamOptions{PusherID: pusherID, priority: priority}) + sc.writeSched.OpenStream(st.id, OpenStreamOptions{PusherID: pusherID}) if st.isPushed() { sc.curPushedStreams++ } else { @@ -3288,7 +3218,7 @@ func (sc *serverConn) startPush(msg *startPushRequest) { // transition to "half closed (remote)" after sending the initial HEADERS, but // we start in "half closed (remote)" for simplicity. // See further comments at the definition of stateHalfClosedRemote. - promised := sc.newStream(promisedID, msg.parent.id, stateHalfClosedRemote, defaultRFC9218Priority(sc.priorityAware && !sc.hasIntermediary)) + promised := sc.newStream(promisedID, msg.parent.id, stateHalfClosedRemote) rw, req, err := sc.newWriterAndRequestNoBody(promised, httpcommon.ServerRequestParam{ Method: msg.method, Scheme: msg.url.Scheme, diff --git a/vendor/golang.org/x/net/http2/transport.go b/vendor/golang.org/x/net/http2/transport.go index 8cf64b78e28..ccb87e6da37 100644 --- a/vendor/golang.org/x/net/http2/transport.go +++ b/vendor/golang.org/x/net/http2/transport.go @@ -2779,11 +2779,6 @@ func (rl *clientConnReadLoop) endStreamError(cs *clientStream, err error) { cs.abortStream(err) } -func (rl *clientConnReadLoop) endStreamErrorLocked(cs *clientStream, err error) { - cs.readAborted = true - cs.abortStreamLocked(err) -} - // Constants passed to streamByID for documentation purposes. const ( headerOrDataFrame = true @@ -2951,7 +2946,7 @@ func (rl *clientConnReadLoop) processWindowUpdate(f *WindowUpdateFrame) error { if !fl.add(int32(f.Increment)) { // For stream, the sender sends RST_STREAM with an error code of FLOW_CONTROL_ERROR if cs != nil { - rl.endStreamErrorLocked(cs, StreamError{ + rl.endStreamError(cs, StreamError{ StreamID: f.StreamID, Code: ErrCodeFlowControl, }) diff --git a/vendor/golang.org/x/net/http2/writesched_priority_rfc7540.go b/vendor/golang.org/x/net/http2/writesched_priority_rfc7540.go index 7803a9261b0..4e33c29a244 100644 --- a/vendor/golang.org/x/net/http2/writesched_priority_rfc7540.go +++ b/vendor/golang.org/x/net/http2/writesched_priority_rfc7540.go @@ -56,10 +56,6 @@ type PriorityWriteSchedulerConfig struct { // frames by following HTTP/2 priorities as described in RFC 7540 Section 5.3. // If cfg is nil, default options are used. func NewPriorityWriteScheduler(cfg *PriorityWriteSchedulerConfig) WriteScheduler { - return newPriorityWriteSchedulerRFC7540(cfg) -} - -func newPriorityWriteSchedulerRFC7540(cfg *PriorityWriteSchedulerConfig) WriteScheduler { if cfg == nil { // For justification of these defaults, see: // https://docs.google.com/document/d/1oLhNg1skaWD4_DtaoCxdSRN5erEXrH-KnLrMwEpOtFY diff --git a/vendor/golang.org/x/net/internal/httpsfv/httpsfv.go b/vendor/golang.org/x/net/internal/httpsfv/httpsfv.go deleted file mode 100644 index 4ae2ca5b8e3..00000000000 --- a/vendor/golang.org/x/net/internal/httpsfv/httpsfv.go +++ /dev/null @@ -1,665 +0,0 @@ -// Copyright 2025 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// Package httpsfv provides functionality for dealing with HTTP Structured -// Field Values. -package httpsfv - -import ( - "slices" - "strconv" - "strings" - "time" - "unicode/utf8" -) - -func isLCAlpha(b byte) bool { - return (b >= 'a' && b <= 'z') -} - -func isAlpha(b byte) bool { - return isLCAlpha(b) || (b >= 'A' && b <= 'Z') -} - -func isDigit(b byte) bool { - return b >= '0' && b <= '9' -} - -func isVChar(b byte) bool { - return b >= 0x21 && b <= 0x7e -} - -func isSP(b byte) bool { - return b == 0x20 -} - -func isTChar(b byte) bool { - if isAlpha(b) || isDigit(b) { - return true - } - return slices.Contains([]byte{'!', '#', '$', '%', '&', '\'', '*', '+', '-', '.', '^', '_', '`', '|', '~'}, b) -} - -func countLeftWhitespace(s string) int { - i := 0 - for _, ch := range []byte(s) { - if ch != ' ' && ch != '\t' { - break - } - i++ - } - return i -} - -// https://www.rfc-editor.org/rfc/rfc4648#section-8. -func decOctetHex(ch1, ch2 byte) (ch byte, ok bool) { - decBase16 := func(in byte) (out byte, ok bool) { - if !isDigit(in) && !(in >= 'a' && in <= 'f') { - return 0, false - } - if isDigit(in) { - return in - '0', true - } - return in - 'a' + 10, true - } - - if ch1, ok = decBase16(ch1); !ok { - return 0, ok - } - if ch2, ok = decBase16(ch2); !ok { - return 0, ok - } - return ch1<<4 | ch2, true -} - -// ParseList parses a list from a given HTTP Structured Field Values. -// -// Given an HTTP SFV string that represents a list, it will call the given -// function using each of the members and parameters contained in the list. -// This allows the caller to extract information out of the list. -// -// This function will return once it encounters the end of the string, or -// something that is not a list. If it cannot consume the entire given -// string, the ok value returned will be false. -// -// https://www.rfc-editor.org/rfc/rfc9651.html#name-parsing-a-list. -func ParseList(s string, f func(member, param string)) (ok bool) { - for len(s) != 0 { - var member, param string - if len(s) != 0 && s[0] == '(' { - if member, s, ok = consumeBareInnerList(s, nil); !ok { - return ok - } - } else { - if member, s, ok = consumeBareItem(s); !ok { - return ok - } - } - if param, s, ok = consumeParameter(s, nil); !ok { - return ok - } - if f != nil { - f(member, param) - } - - s = s[countLeftWhitespace(s):] - if len(s) == 0 { - break - } - if s[0] != ',' { - return false - } - s = s[1:] - s = s[countLeftWhitespace(s):] - if len(s) == 0 { - return false - } - } - return true -} - -// consumeBareInnerList consumes an inner list -// (https://www.rfc-editor.org/rfc/rfc9651.html#name-parsing-an-inner-list), -// except for the inner list's top-most parameter. -// For example, given `(a;b c;d);e`, it will consume only `(a;b c;d)`. -func consumeBareInnerList(s string, f func(bareItem, param string)) (consumed, rest string, ok bool) { - if len(s) == 0 || s[0] != '(' { - return "", s, false - } - rest = s[1:] - for len(rest) != 0 { - var bareItem, param string - rest = rest[countLeftWhitespace(rest):] - if len(rest) != 0 && rest[0] == ')' { - rest = rest[1:] - break - } - if bareItem, rest, ok = consumeBareItem(rest); !ok { - return "", s, ok - } - if param, rest, ok = consumeParameter(rest, nil); !ok { - return "", s, ok - } - if len(rest) == 0 || (rest[0] != ')' && !isSP(rest[0])) { - return "", s, false - } - if f != nil { - f(bareItem, param) - } - } - return s[:len(s)-len(rest)], rest, true -} - -// ParseBareInnerList parses a bare inner list from a given HTTP Structured -// Field Values. -// -// We define a bare inner list as an inner list -// (https://www.rfc-editor.org/rfc/rfc9651.html#name-parsing-an-inner-list), -// without the top-most parameter of the inner list. For example, given the -// inner list `(a;b c;d);e`, the bare inner list would be `(a;b c;d)`. -// -// Given an HTTP SFV string that represents a bare inner list, it will call the -// given function using each of the bare item and parameter within the bare -// inner list. This allows the caller to extract information out of the bare -// inner list. -// -// This function will return once it encounters the end of the bare inner list, -// or something that is not a bare inner list. If it cannot consume the entire -// given string, the ok value returned will be false. -func ParseBareInnerList(s string, f func(bareItem, param string)) (ok bool) { - _, rest, ok := consumeBareInnerList(s, f) - return rest == "" && ok -} - -// https://www.rfc-editor.org/rfc/rfc9651.html#name-parsing-an-item. -func consumeItem(s string, f func(bareItem, param string)) (consumed, rest string, ok bool) { - var bareItem, param string - if bareItem, rest, ok = consumeBareItem(s); !ok { - return "", s, ok - } - if param, rest, ok = consumeParameter(rest, nil); !ok { - return "", s, ok - } - if f != nil { - f(bareItem, param) - } - return s[:len(s)-len(rest)], rest, true -} - -// ParseItem parses an item from a given HTTP Structured Field Values. -// -// Given an HTTP SFV string that represents an item, it will call the given -// function once, with the bare item and the parameter of the item. This allows -// the caller to extract information out of the item. -// -// This function will return once it encounters the end of the string, or -// something that is not an item. If it cannot consume the entire given -// string, the ok value returned will be false. -// -// https://www.rfc-editor.org/rfc/rfc9651.html#name-parsing-an-item. -func ParseItem(s string, f func(bareItem, param string)) (ok bool) { - _, rest, ok := consumeItem(s, f) - return rest == "" && ok -} - -// ParseDictionary parses a dictionary from a given HTTP Structured Field -// Values. -// -// Given an HTTP SFV string that represents a dictionary, it will call the -// given function using each of the keys, values, and parameters contained in -// the dictionary. This allows the caller to extract information out of the -// dictionary. -// -// This function will return once it encounters the end of the string, or -// something that is not a dictionary. If it cannot consume the entire given -// string, the ok value returned will be false. -// -// https://www.rfc-editor.org/rfc/rfc9651.html#name-parsing-a-dictionary. -func ParseDictionary(s string, f func(key, val, param string)) (ok bool) { - for len(s) != 0 { - var key, val, param string - val = "?1" // Default value for empty val is boolean true. - if key, s, ok = consumeKey(s); !ok { - return ok - } - if len(s) != 0 && s[0] == '=' { - s = s[1:] - if len(s) != 0 && s[0] == '(' { - if val, s, ok = consumeBareInnerList(s, nil); !ok { - return ok - } - } else { - if val, s, ok = consumeBareItem(s); !ok { - return ok - } - } - } - if param, s, ok = consumeParameter(s, nil); !ok { - return ok - } - if f != nil { - f(key, val, param) - } - s = s[countLeftWhitespace(s):] - if len(s) == 0 { - break - } - if s[0] == ',' { - s = s[1:] - } - s = s[countLeftWhitespace(s):] - if len(s) == 0 { - return false - } - } - return true -} - -// https://www.rfc-editor.org/rfc/rfc9651.html#parse-param. -func consumeParameter(s string, f func(key, val string)) (consumed, rest string, ok bool) { - rest = s - for len(rest) != 0 { - var key, val string - val = "?1" // Default value for empty val is boolean true. - if rest[0] != ';' { - break - } - rest = rest[1:] - rest = rest[countLeftWhitespace(rest):] - key, rest, ok = consumeKey(rest) - if !ok { - return "", s, ok - } - if len(rest) != 0 && rest[0] == '=' { - rest = rest[1:] - val, rest, ok = consumeBareItem(rest) - if !ok { - return "", s, ok - } - } - if f != nil { - f(key, val) - } - } - return s[:len(s)-len(rest)], rest, true -} - -// ParseParameter parses a parameter from a given HTTP Structured Field Values. -// -// Given an HTTP SFV string that represents a parameter, it will call the given -// function using each of the keys and values contained in the parameter. This -// allows the caller to extract information out of the parameter. -// -// This function will return once it encounters the end of the string, or -// something that is not a parameter. If it cannot consume the entire given -// string, the ok value returned will be false. -// -// https://www.rfc-editor.org/rfc/rfc9651.html#parse-param. -func ParseParameter(s string, f func(key, val string)) (ok bool) { - _, rest, ok := consumeParameter(s, f) - return rest == "" && ok -} - -// https://www.rfc-editor.org/rfc/rfc9651.html#name-parsing-a-key. -func consumeKey(s string) (consumed, rest string, ok bool) { - if len(s) == 0 || (!isLCAlpha(s[0]) && s[0] != '*') { - return "", s, false - } - i := 0 - for _, ch := range []byte(s) { - if !isLCAlpha(ch) && !isDigit(ch) && !slices.Contains([]byte("_-.*"), ch) { - break - } - i++ - } - return s[:i], s[i:], true -} - -// https://www.rfc-editor.org/rfc/rfc9651.html#name-parsing-an-integer-or-decim. -func consumeIntegerOrDecimal(s string) (consumed, rest string, ok bool) { - var i, signOffset, periodIndex int - var isDecimal bool - if i < len(s) && s[i] == '-' { - i++ - signOffset++ - } - if i >= len(s) { - return "", s, false - } - if !isDigit(s[i]) { - return "", s, false - } - for i < len(s) { - ch := s[i] - if isDigit(ch) { - i++ - continue - } - if !isDecimal && ch == '.' { - if i-signOffset > 12 { - return "", s, false - } - periodIndex = i - isDecimal = true - i++ - continue - } - break - } - if !isDecimal && i-signOffset > 15 { - return "", s, false - } - if isDecimal { - if i-signOffset > 16 { - return "", s, false - } - if s[i-1] == '.' { - return "", s, false - } - if i-periodIndex-1 > 3 { - return "", s, false - } - } - return s[:i], s[i:], true -} - -// ParseInteger parses an integer from a given HTTP Structured Field Values. -// -// The entire HTTP SFV string must consist of a valid integer. It returns the -// parsed integer and an ok boolean value, indicating success or not. -// -// https://www.rfc-editor.org/rfc/rfc9651.html#name-parsing-an-integer-or-decim. -func ParseInteger(s string) (parsed int64, ok bool) { - if _, rest, ok := consumeIntegerOrDecimal(s); !ok || rest != "" { - return 0, false - } - if n, err := strconv.ParseInt(s, 10, 64); err == nil { - return n, true - } - return 0, false -} - -// ParseDecimal parses a decimal from a given HTTP Structured Field Values. -// -// The entire HTTP SFV string must consist of a valid decimal. It returns the -// parsed decimal and an ok boolean value, indicating success or not. -// -// https://www.rfc-editor.org/rfc/rfc9651.html#name-parsing-an-integer-or-decim. -func ParseDecimal(s string) (parsed float64, ok bool) { - if _, rest, ok := consumeIntegerOrDecimal(s); !ok || rest != "" { - return 0, false - } - if !strings.Contains(s, ".") { - return 0, false - } - if n, err := strconv.ParseFloat(s, 64); err == nil { - return n, true - } - return 0, false -} - -// https://www.rfc-editor.org/rfc/rfc9651.html#name-parsing-a-string. -func consumeString(s string) (consumed, rest string, ok bool) { - if len(s) == 0 || s[0] != '"' { - return "", s, false - } - for i := 1; i < len(s); i++ { - switch ch := s[i]; ch { - case '\\': - if i+1 >= len(s) { - return "", s, false - } - i++ - if ch = s[i]; ch != '"' && ch != '\\' { - return "", s, false - } - case '"': - return s[:i+1], s[i+1:], true - default: - if !isVChar(ch) && !isSP(ch) { - return "", s, false - } - } - } - return "", s, false -} - -// ParseString parses a Go string from a given HTTP Structured Field Values. -// -// The entire HTTP SFV string must consist of a valid string. It returns the -// parsed string and an ok boolean value, indicating success or not. -// -// https://www.rfc-editor.org/rfc/rfc9651.html#name-parsing-a-string. -func ParseString(s string) (parsed string, ok bool) { - if _, rest, ok := consumeString(s); !ok || rest != "" { - return "", false - } - return s[1 : len(s)-1], true -} - -// https://www.rfc-editor.org/rfc/rfc9651.html#name-parsing-a-token -func consumeToken(s string) (consumed, rest string, ok bool) { - if len(s) == 0 || (!isAlpha(s[0]) && s[0] != '*') { - return "", s, false - } - i := 0 - for _, ch := range []byte(s) { - if !isTChar(ch) && !slices.Contains([]byte(":/"), ch) { - break - } - i++ - } - return s[:i], s[i:], true -} - -// ParseToken parses a token from a given HTTP Structured Field Values. -// -// The entire HTTP SFV string must consist of a valid token. It returns the -// parsed token and an ok boolean value, indicating success or not. -// -// https://www.rfc-editor.org/rfc/rfc9651.html#name-parsing-a-token -func ParseToken(s string) (parsed string, ok bool) { - if _, rest, ok := consumeToken(s); !ok || rest != "" { - return "", false - } - return s, true -} - -// https://www.rfc-editor.org/rfc/rfc9651.html#name-parsing-a-byte-sequence. -func consumeByteSequence(s string) (consumed, rest string, ok bool) { - if len(s) == 0 || s[0] != ':' { - return "", s, false - } - for i := 1; i < len(s); i++ { - if ch := s[i]; ch == ':' { - return s[:i+1], s[i+1:], true - } - if ch := s[i]; !isAlpha(ch) && !isDigit(ch) && !slices.Contains([]byte("+/="), ch) { - return "", s, false - } - } - return "", s, false -} - -// ParseByteSequence parses a byte sequence from a given HTTP Structured Field -// Values. -// -// The entire HTTP SFV string must consist of a valid byte sequence. It returns -// the parsed byte sequence and an ok boolean value, indicating success or not. -// -// https://www.rfc-editor.org/rfc/rfc9651.html#name-parsing-a-byte-sequence. -func ParseByteSequence(s string) (parsed []byte, ok bool) { - if _, rest, ok := consumeByteSequence(s); !ok || rest != "" { - return nil, false - } - return []byte(s[1 : len(s)-1]), true -} - -// https://www.rfc-editor.org/rfc/rfc9651.html#name-parsing-a-boolean. -func consumeBoolean(s string) (consumed, rest string, ok bool) { - if len(s) >= 2 && (s[:2] == "?0" || s[:2] == "?1") { - return s[:2], s[2:], true - } - return "", s, false -} - -// ParseBoolean parses a boolean from a given HTTP Structured Field Values. -// -// The entire HTTP SFV string must consist of a valid boolean. It returns the -// parsed boolean and an ok boolean value, indicating success or not. -// -// https://www.rfc-editor.org/rfc/rfc9651.html#name-parsing-a-boolean. -func ParseBoolean(s string) (parsed bool, ok bool) { - if _, rest, ok := consumeBoolean(s); !ok || rest != "" { - return false, false - } - return s == "?1", true -} - -// https://www.rfc-editor.org/rfc/rfc9651.html#name-parsing-a-date. -func consumeDate(s string) (consumed, rest string, ok bool) { - if len(s) == 0 || s[0] != '@' { - return "", s, false - } - if _, rest, ok = consumeIntegerOrDecimal(s[1:]); !ok { - return "", s, ok - } - consumed = s[:len(s)-len(rest)] - if slices.Contains([]byte(consumed), '.') { - return "", s, false - } - return consumed, rest, ok -} - -// ParseDate parses a date from a given HTTP Structured Field Values. -// -// The entire HTTP SFV string must consist of a valid date. It returns the -// parsed date and an ok boolean value, indicating success or not. -// -// https://www.rfc-editor.org/rfc/rfc9651.html#name-parsing-a-date. -func ParseDate(s string) (parsed time.Time, ok bool) { - if _, rest, ok := consumeDate(s); !ok || rest != "" { - return time.Time{}, false - } - if n, ok := ParseInteger(s[1:]); !ok { - return time.Time{}, false - } else { - return time.Unix(n, 0), true - } -} - -// https://www.rfc-editor.org/rfc/rfc9651.html#name-parsing-a-display-string. -func consumeDisplayString(s string) (consumed, rest string, ok bool) { - // To prevent excessive allocation, especially when input is large, we - // maintain a buffer of 4 bytes to keep track of the last rune we - // encounter. This way, we can validate that the display string conforms to - // UTF-8 without actually building the whole string. - var lastRune [4]byte - var runeLen int - isPartOfValidRune := func(ch byte) bool { - lastRune[runeLen] = ch - runeLen++ - if utf8.FullRune(lastRune[:runeLen]) { - r, s := utf8.DecodeRune(lastRune[:runeLen]) - if r == utf8.RuneError { - return false - } - copy(lastRune[:], lastRune[s:runeLen]) - runeLen -= s - return true - } - return runeLen <= 4 - } - - if len(s) <= 1 || s[:2] != `%"` { - return "", s, false - } - i := 2 - for i < len(s) { - ch := s[i] - if !isVChar(ch) && !isSP(ch) { - return "", s, false - } - switch ch { - case '"': - if runeLen > 0 { - return "", s, false - } - return s[:i+1], s[i+1:], true - case '%': - if i+2 >= len(s) { - return "", s, false - } - if ch, ok = decOctetHex(s[i+1], s[i+2]); !ok { - return "", s, ok - } - if ok = isPartOfValidRune(ch); !ok { - return "", s, ok - } - i += 3 - default: - if ok = isPartOfValidRune(ch); !ok { - return "", s, ok - } - i++ - } - } - return "", s, false -} - -// ParseDisplayString parses a display string from a given HTTP Structured -// Field Values. -// -// The entire HTTP SFV string must consist of a valid display string. It -// returns the parsed display string and an ok boolean value, indicating -// success or not. -// -// https://www.rfc-editor.org/rfc/rfc9651.html#name-parsing-a-display-string. -func ParseDisplayString(s string) (parsed string, ok bool) { - if _, rest, ok := consumeDisplayString(s); !ok || rest != "" { - return "", false - } - // consumeDisplayString() already validates that we have a valid display - // string. Therefore, we can just construct the display string, without - // validating it again. - s = s[2 : len(s)-1] - var b strings.Builder - for i := 0; i < len(s); { - if s[i] == '%' { - decoded, _ := decOctetHex(s[i+1], s[i+2]) - b.WriteByte(decoded) - i += 3 - continue - } - b.WriteByte(s[i]) - i++ - } - return b.String(), true -} - -// https://www.rfc-editor.org/rfc/rfc9651.html#parse-bare-item. -func consumeBareItem(s string) (consumed, rest string, ok bool) { - if len(s) == 0 { - return "", s, false - } - ch := s[0] - switch { - case ch == '-' || isDigit(ch): - return consumeIntegerOrDecimal(s) - case ch == '"': - return consumeString(s) - case ch == '*' || isAlpha(ch): - return consumeToken(s) - case ch == ':': - return consumeByteSequence(s) - case ch == '?': - return consumeBoolean(s) - case ch == '@': - return consumeDate(s) - case ch == '%': - return consumeDisplayString(s) - default: - return "", s, false - } -} diff --git a/vendor/golang.org/x/net/internal/socket/empty.s b/vendor/golang.org/x/net/internal/socket/empty.s index c7bde71f134..49d79791e01 100644 --- a/vendor/golang.org/x/net/internal/socket/empty.s +++ b/vendor/golang.org/x/net/internal/socket/empty.s @@ -2,6 +2,6 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build darwin +//go:build darwin && go1.12 // This exists solely so we can linkname in symbols from syscall. diff --git a/vendor/golang.org/x/net/internal/socket/msghdr_solaris_64bit.go b/vendor/golang.org/x/net/internal/socket/msghdr_solaris_64bit.go index 927ce91ac23..e212b50f8d9 100644 --- a/vendor/golang.org/x/net/internal/socket/msghdr_solaris_64bit.go +++ b/vendor/golang.org/x/net/internal/socket/msghdr_solaris_64bit.go @@ -6,10 +6,7 @@ package socket -import ( - "encoding/binary" - "unsafe" -) +import "unsafe" func (h *msghdr) pack(vs []iovec, bs [][]byte, oob []byte, sa []byte) { for i := range vs { @@ -34,5 +31,5 @@ func (h *msghdr) controllen() int { } func (h *msghdr) flags() int { - return int(binary.NativeEndian.Uint32(h.Pad_cgo_2[:])) + return int(NativeEndian.Uint32(h.Pad_cgo_2[:])) } diff --git a/vendor/golang.org/x/net/internal/socket/socket.go b/vendor/golang.org/x/net/internal/socket/socket.go index fb7fa1e00ae..dba47bf12b9 100644 --- a/vendor/golang.org/x/net/internal/socket/socket.go +++ b/vendor/golang.org/x/net/internal/socket/socket.go @@ -7,7 +7,6 @@ package socket // import "golang.org/x/net/internal/socket" import ( - "encoding/binary" "errors" "net" "runtime" @@ -59,7 +58,7 @@ func (o *Option) GetInt(c *Conn) (int, error) { if o.Len == 1 { return int(b[0]), nil } - return int(binary.NativeEndian.Uint32(b[:4])), nil + return int(NativeEndian.Uint32(b[:4])), nil } // Set writes the option and value to the kernel. @@ -85,7 +84,7 @@ func (o *Option) SetInt(c *Conn, v int) error { b = []byte{byte(v)} } else { var bb [4]byte - binary.NativeEndian.PutUint32(bb[:o.Len], uint32(v)) + NativeEndian.PutUint32(bb[:o.Len], uint32(v)) b = bb[:4] } return o.set(c, b) diff --git a/vendor/golang.org/x/net/internal/socket/sys.go b/vendor/golang.org/x/net/internal/socket/sys.go new file mode 100644 index 00000000000..4a26af18634 --- /dev/null +++ b/vendor/golang.org/x/net/internal/socket/sys.go @@ -0,0 +1,23 @@ +// Copyright 2017 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package socket + +import ( + "encoding/binary" + "unsafe" +) + +// NativeEndian is the machine native endian implementation of ByteOrder. +var NativeEndian binary.ByteOrder + +func init() { + i := uint32(1) + b := (*[4]byte)(unsafe.Pointer(&i)) + if b[0] == 1 { + NativeEndian = binary.LittleEndian + } else { + NativeEndian = binary.BigEndian + } +} diff --git a/vendor/golang.org/x/net/internal/socket/sys_posix.go b/vendor/golang.org/x/net/internal/socket/sys_posix.go index 84ff2351707..58d86548244 100644 --- a/vendor/golang.org/x/net/internal/socket/sys_posix.go +++ b/vendor/golang.org/x/net/internal/socket/sys_posix.go @@ -36,7 +36,7 @@ func marshalSockaddr(ip net.IP, port int, zone string, b []byte) int { if ip4 := ip.To4(); ip4 != nil { switch runtime.GOOS { case "android", "illumos", "linux", "solaris", "windows": - binary.NativeEndian.PutUint16(b[:2], uint16(sysAF_INET)) + NativeEndian.PutUint16(b[:2], uint16(sysAF_INET)) default: b[0] = sizeofSockaddrInet4 b[1] = sysAF_INET @@ -48,7 +48,7 @@ func marshalSockaddr(ip net.IP, port int, zone string, b []byte) int { if ip6 := ip.To16(); ip6 != nil && ip.To4() == nil { switch runtime.GOOS { case "android", "illumos", "linux", "solaris", "windows": - binary.NativeEndian.PutUint16(b[:2], uint16(sysAF_INET6)) + NativeEndian.PutUint16(b[:2], uint16(sysAF_INET6)) default: b[0] = sizeofSockaddrInet6 b[1] = sysAF_INET6 @@ -56,7 +56,7 @@ func marshalSockaddr(ip net.IP, port int, zone string, b []byte) int { binary.BigEndian.PutUint16(b[2:4], uint16(port)) copy(b[8:24], ip6) if zone != "" { - binary.NativeEndian.PutUint32(b[24:28], uint32(zoneCache.index(zone))) + NativeEndian.PutUint32(b[24:28], uint32(zoneCache.index(zone))) } return sizeofSockaddrInet6 } @@ -70,7 +70,7 @@ func parseInetAddr(b []byte, network string) (net.Addr, error) { var af int switch runtime.GOOS { case "android", "illumos", "linux", "solaris", "windows": - af = int(binary.NativeEndian.Uint16(b[:2])) + af = int(NativeEndian.Uint16(b[:2])) default: af = int(b[1]) } @@ -89,7 +89,7 @@ func parseInetAddr(b []byte, network string) (net.Addr, error) { } ip = make(net.IP, net.IPv6len) copy(ip, b[8:24]) - if id := int(binary.NativeEndian.Uint32(b[24:28])); id > 0 { + if id := int(NativeEndian.Uint32(b[24:28])); id > 0 { zone = zoneCache.name(id) } } diff --git a/vendor/golang.org/x/net/ipv4/header.go b/vendor/golang.org/x/net/ipv4/header.go index ee6edae14b9..a00a3eaff91 100644 --- a/vendor/golang.org/x/net/ipv4/header.go +++ b/vendor/golang.org/x/net/ipv4/header.go @@ -9,6 +9,8 @@ import ( "fmt" "net" "runtime" + + "golang.org/x/net/internal/socket" ) const ( @@ -66,12 +68,12 @@ func (h *Header) Marshal() ([]byte, error) { flagsAndFragOff := (h.FragOff & 0x1fff) | int(h.Flags<<13) switch runtime.GOOS { case "darwin", "ios", "dragonfly", "netbsd": - binary.NativeEndian.PutUint16(b[2:4], uint16(h.TotalLen)) - binary.NativeEndian.PutUint16(b[6:8], uint16(flagsAndFragOff)) + socket.NativeEndian.PutUint16(b[2:4], uint16(h.TotalLen)) + socket.NativeEndian.PutUint16(b[6:8], uint16(flagsAndFragOff)) case "freebsd": if freebsdVersion < 1100000 { - binary.NativeEndian.PutUint16(b[2:4], uint16(h.TotalLen)) - binary.NativeEndian.PutUint16(b[6:8], uint16(flagsAndFragOff)) + socket.NativeEndian.PutUint16(b[2:4], uint16(h.TotalLen)) + socket.NativeEndian.PutUint16(b[6:8], uint16(flagsAndFragOff)) } else { binary.BigEndian.PutUint16(b[2:4], uint16(h.TotalLen)) binary.BigEndian.PutUint16(b[6:8], uint16(flagsAndFragOff)) @@ -125,15 +127,15 @@ func (h *Header) Parse(b []byte) error { h.Dst = net.IPv4(b[16], b[17], b[18], b[19]) switch runtime.GOOS { case "darwin", "ios", "dragonfly", "netbsd": - h.TotalLen = int(binary.NativeEndian.Uint16(b[2:4])) + hdrlen - h.FragOff = int(binary.NativeEndian.Uint16(b[6:8])) + h.TotalLen = int(socket.NativeEndian.Uint16(b[2:4])) + hdrlen + h.FragOff = int(socket.NativeEndian.Uint16(b[6:8])) case "freebsd": if freebsdVersion < 1100000 { - h.TotalLen = int(binary.NativeEndian.Uint16(b[2:4])) + h.TotalLen = int(socket.NativeEndian.Uint16(b[2:4])) if freebsdVersion < 1000000 { h.TotalLen += hdrlen } - h.FragOff = int(binary.NativeEndian.Uint16(b[6:8])) + h.FragOff = int(socket.NativeEndian.Uint16(b[6:8])) } else { h.TotalLen = int(binary.BigEndian.Uint16(b[2:4])) h.FragOff = int(binary.BigEndian.Uint16(b[6:8])) diff --git a/vendor/golang.org/x/net/ipv6/control_rfc2292_unix.go b/vendor/golang.org/x/net/ipv6/control_rfc2292_unix.go index e363a3a100c..a8f04e7b3b8 100644 --- a/vendor/golang.org/x/net/ipv6/control_rfc2292_unix.go +++ b/vendor/golang.org/x/net/ipv6/control_rfc2292_unix.go @@ -7,7 +7,6 @@ package ipv6 import ( - "encoding/binary" "unsafe" "golang.org/x/net/internal/iana" @@ -20,7 +19,7 @@ func marshal2292HopLimit(b []byte, cm *ControlMessage) []byte { m := socket.ControlMessage(b) m.MarshalHeader(iana.ProtocolIPv6, unix.IPV6_2292HOPLIMIT, 4) if cm != nil { - binary.NativeEndian.PutUint32(m.Data(4), uint32(cm.HopLimit)) + socket.NativeEndian.PutUint32(m.Data(4), uint32(cm.HopLimit)) } return m.Next(4) } diff --git a/vendor/golang.org/x/net/ipv6/control_rfc3542_unix.go b/vendor/golang.org/x/net/ipv6/control_rfc3542_unix.go index 95259662e34..51fbbb1f170 100644 --- a/vendor/golang.org/x/net/ipv6/control_rfc3542_unix.go +++ b/vendor/golang.org/x/net/ipv6/control_rfc3542_unix.go @@ -7,7 +7,6 @@ package ipv6 import ( - "encoding/binary" "net" "unsafe" @@ -21,26 +20,26 @@ func marshalTrafficClass(b []byte, cm *ControlMessage) []byte { m := socket.ControlMessage(b) m.MarshalHeader(iana.ProtocolIPv6, unix.IPV6_TCLASS, 4) if cm != nil { - binary.NativeEndian.PutUint32(m.Data(4), uint32(cm.TrafficClass)) + socket.NativeEndian.PutUint32(m.Data(4), uint32(cm.TrafficClass)) } return m.Next(4) } func parseTrafficClass(cm *ControlMessage, b []byte) { - cm.TrafficClass = int(binary.NativeEndian.Uint32(b[:4])) + cm.TrafficClass = int(socket.NativeEndian.Uint32(b[:4])) } func marshalHopLimit(b []byte, cm *ControlMessage) []byte { m := socket.ControlMessage(b) m.MarshalHeader(iana.ProtocolIPv6, unix.IPV6_HOPLIMIT, 4) if cm != nil { - binary.NativeEndian.PutUint32(m.Data(4), uint32(cm.HopLimit)) + socket.NativeEndian.PutUint32(m.Data(4), uint32(cm.HopLimit)) } return m.Next(4) } func parseHopLimit(cm *ControlMessage, b []byte) { - cm.HopLimit = int(binary.NativeEndian.Uint32(b[:4])) + cm.HopLimit = int(socket.NativeEndian.Uint32(b[:4])) } func marshalPacketInfo(b []byte, cm *ControlMessage) []byte { diff --git a/vendor/golang.org/x/net/publicsuffix/data/children b/vendor/golang.org/x/net/publicsuffix/data/children index 1f16913084d..986a246a6c0 100644 Binary files a/vendor/golang.org/x/net/publicsuffix/data/children and b/vendor/golang.org/x/net/publicsuffix/data/children differ diff --git a/vendor/golang.org/x/net/publicsuffix/data/nodes b/vendor/golang.org/x/net/publicsuffix/data/nodes index 7ac74a1d4fe..38b8999600c 100644 Binary files a/vendor/golang.org/x/net/publicsuffix/data/nodes and b/vendor/golang.org/x/net/publicsuffix/data/nodes differ diff --git a/vendor/golang.org/x/net/publicsuffix/data/text b/vendor/golang.org/x/net/publicsuffix/data/text index 38f06ea9e35..b151d97de27 100644 --- a/vendor/golang.org/x/net/publicsuffix/data/text +++ b/vendor/golang.org/x/net/publicsuffix/data/text @@ -1 +1 @@ -bonagasukeymachinebondigitaloceanspaces3-website-us-west-1bones3-website-us-west-2boomla1-plenitvedestrandiskstationcillair-traffic-controllagdenesnaaseinet-freaksakurastorageboschristmasakikuchikuseihicampinashikiminohostfoldiskussionsbereicheap-east-2bostik-serverrankoshigayachiyodaklakasamatsudoes-itjmaxxxn--12c1fe0brandisrechtrainingkpmgdbarclays3-fips-us-gov-west-1bostonakijinsekikogentlentapisa-geekarlsoyoriikarmoyoshiokanravoues3-eu-west-3botdashgabadaddjabbottjomelhus-northeast-1bouncemerckmsdsclouditchyouriparsakuratanishiwakinderoyurihonjournalistreaklinksakurawebredirectmelbourneboutiquebecologialaichaugianglassessmentsakyotanabellunoorepairbusanagochigasakishimabarakawagoeboutireserve-onlineboyfriendoftheinternetflixn--12cfi8ixb8lorenskogleezebozen-sudtirolovableprojectjxn--12co0c3b4evalleaostamayukuhashimokitayamaxarnetbankanzakiyosatokorozawap-southeast-7bozen-suedtirolovepopartindevsalangenissandoyusuharazurefdienbienishikatakayamatsushigemrstudio-prodoyolasitequipmentateshinanomachintaifun-dnshome-webservercellillesandefjordietateyamapartments3-ca-central-1bplacedogawarabikomaezakirunord-frontierepbodynathomebuiltwithdarklangevagrarmeniazurestaticappspaceusercontentproxy9guacuedaeguambulancechireadmyblogoip-dynamica-west-180recipescaracalculatorskeninjambylimanowarudaetnaamesjevuemielnogatabuseating-organicbcg123homepagexlimitedeltaitogliattips3-ap-northeast-3utilitiesmall-websozaibetsubamericanfamilydstcgroupperimo-siemenscaledekadena4ufcfaninohekinanporovnospamproxyokoteatonamidsundeportebetsukubank123kotisivultrobjectselinogradimo-i-ranamizuhobby-siteaches-yogano-ip-ddnsgurugbydgoszczecin-addrammenuorogerscblackbaudcdn-edgestackhero-networkinggroupowiat-band-campaignieznoboribetsubsc-paywhirlimodumemergencymruovatlassian-dev-buildereclaims3-ap-south-12hparasiteasypanelblagrigentobamaceiobbcn-north-123websitebuildersvp4lima-citychyattorneyagawafaicloudinedre-eiker2-deloitteastus2000123webseiteckidsmynascloudfrontendofinternet-dnsnasaarlandds3-ap-northeast-123sitewebcamauction-acornimsite164-balsan-suedtirolillyokosukanoyakage2balsfjorddnss3-accesspoint-fips3-ap-east-123paginawebadorsiteshikagamiishibechambagrice-labss3-123minsidaarborteamsterdamnserverbaniamallamazonwebservices-123miwebaccelastx4432-b-datacenterprisesakievennodebalancernfshostrowwlkpnftstorage123hjemmeside5brasiliadboxosascoli-picenord-odalovesickarpaczest-a-la-maisondre-landivtasvuodnakamurataiwanumatajimidorivnebravendbarefootballangenovarahkkeravjuh-ohtawaramotoineppueblockbusternikkoelnishikatsuragit-repostre-toteneiheijiitatebayashikaoizumizakitchenishikawazukamisatokonamerikawaueu-2bresciaogashimadachicappadovaapstecnologiazurewebsitests3-external-1bridgestonebrindisicilynxn--1ck2e1baremetalvdalipaynow-dnsdojobservablehqhaccaltanissettaikikugawaltervistablogivestbyglandroverhallaakesvuemielecceu-3broadwayusuitarumizusawabroke-itkmaxxn--1ctwolominamatargithubpreviewskrakowebview-assetsalatrobeneventochiokinoshimagentositempurlplfinancialpusercontentksatmalluccalvinklein-brb-hostingliwicebrokereportmpartsalon-1brothercules-developerauniteroirmeteorappartypo3serverevistathellebrumunddaluhanskartuzyuullensvanguardivttasvuotnakaniikawatanagurabrusselsaloonissayokoshibahikariyalibabacloudcsaltdalukoweddinglobodontexisteingeekaruizawabryanskierniewicebrynebwcloud-os-instancesaludixn--1lqs03nissedaluroyuzawabzhitomirhcloudiyclientozsdegreeclinicapitalonecliniquenoharaclothingdustdatadetectranbycngouv0cnpyatigorskiptveterinaireadymadethis-a-anarchistjordalshalsencntrani-andria-barletta-trani-andriacodespotenzagancoffeedbackanagawarszawashtenawsapprunnerdpoliticaarpharmaciensanjosoyrocommunity-prochowicecomochizukillvivanovoldacompanyantagonistockholmestrandurumisakimobetsumidanangodoesntexistmein-iservschulegallerycomparemarkerryhotelsannancomputercomsecretrosnubargainsureadthedocs-hosteditorxn--0trq7p7nnishimeraugustow-corp-staticblitzgierzgoraktyubinskaunicommuneencoreapiacenzabc01kapp-ionosegawadlugolekaascolipicenocelotennishiawakuracingheannakadomarineat-urlive-oninomiyakonojorpelandeus-canvasitebinatsukigatajiri234condoshiibabybluebitemasekd1conferenceconstruction-vaporcloudplatformshangriladeskjakamaiedge-stagingreaterconsuladobeio-static-accesscamdvrcampaniaconsultantraniandriabarlettatraniandriaconsultingrebedocapooguycontactivetrailwaycontagematsubaracontractorstababymilkashiwaraconvexecute-apictetcieszyncookingretakahatakaishimokawacooperativano-frankivskjervoyagecoprofesionalchikugodaddyn-o-saurealestatefarmerseinecorsicable-modemoneycosenzakopanecosidnsiskinkyowariasahikawasmercouchpotatofriesannoheliohostrodawaracouncil-central-1couponstackitagawassamukawatarikuzentakatairacozoracpservernamegataishinomakiloappsanokashiwazakiyosellsyourhomeftpharmacyonabaruminamiizukaminokawanishiaizubangecqldyndns-at-homedepotaruiocrankycrdyndns-at-workisboringsakershus-central-1creditcardyndns-blogsytecreditunion-webpaaskoyabenogiftsantamariakecremonasharissadistoloseyouriphdfcbankasserversembokutamakiyosunndalcrewp2cricketnedalcrimeast-kazakhstanangercrispmanagercrminamimakinfinitigooglecodebergrimstadyndns-freeboxosloisirsantoandrealtysnesanukinternationalcrotonecrowniphilipsaobernardovre-eikercrsaogoncanthoboleslawiecommerce-shopitsitecruisesaotomeldalcryptonomichiharacuiabacgiangiangrycuisinellahppictureshinordeste-idclkasukabeatsardegnarvikasumigaurayasudacuneocuritibackdropalermoarekembuchikumagayagawakkanaikawachinaganoharamcoacharitydalaheadjuegoshikibichuocutegirlfriendyndns-homednsardiniafedoraproject-studynaliasnesoddeno-stagingroks-thisayamanobearalvahkijoburgrayjayleagueschokokekscholarshipschoolbusinessebytomaridagawalmartransiphotographysiofeirafembetsukuintuitranslatefermockaszubytemarketingvollferraraferrarinuyamashinazawaferreroticahcesuolohmusashimurayamaizurunschuldockatowicefetsundyndns-remotewdyndns-iphonefossarlfgrongrossetouchijiwadediboxn--2m4a15efhvalerfilegear-sg-1filminamioguni5finalfinancefinnoyfirebaseapplinzinvestmentschulplattforminamisanrikubetsupersalevangerfirenetlibp2phutholdingsmartlabelingroundhandlingroznysaikisosakitahatakamatsukawafirenzefirestonefirmdaleilaocairtelebitbucketrzynh-servebeero-stageiseiroutingthecloudyndns-serverisignfishingokaseljeephuyenfitjarfitnessettsurugiminamitanefjalerflesbergrphxn--2scrj9caravanylvenetoeidsvollutrausercontentoyotsukaidownloadnpassenger-associationl-ams-1flickragerotikagaminordlandyndns-webhareidsbergriwataraindropikeflierneflirflogintohmalopolskanitransportefloppymntransurlfloraclegovcloudappschulserverflorencefloripadualstackatsushikabeautypedreamhosterschwarzgwesleyfloristanohatakahamalselveruminamiuonumatrixn--30rr7yflororoscrapper-sitefltrapanikolaeventscrappingrueflutterflowest1-us1-plenitravelersinsuranceflyfncarbonia-iglesias-carboniaiglesiascarboniafndyndns-wikindlegnicagliaricoharulezajskierval-d-aosta-valleyfoolfor-ourfor-somedusajscryptedyndns-worksarufutsunomiyawakasaikaitakokamikoaniikappudopaaskvolloanswatchesasayamattelemarkhangelskasuyakumodsasebofagefor-theaterfordeatnuniversitysvardoforexrotheshopwarezzoforgotdnscrysecuritytacticscwesteuropencraftravinhlonganforli-cesena-forlicesenaforlifestyleirfjordyndns1forsalesforceforsandasuolojcloud-ver-jpcargoboavistanbulsan-sudtirolutskarumaifminamifuranofortalfosneservehttpbincheonfotrdynnsassarintlon-2foxn--32vp30hachinoheavyfozfr-par-1fr-par-2franalytics-gatewayfredrikstadynservebbsaudafreedesktopazimuthaibinhphuocprapidynuddnsfreebox-osauheradyndns-mailovecollegefantasyleaguefreemyiphostyhostinguidedyn-berlincolnfreesitefreetlservehumourfreightrentin-sudtirolfrenchkisshikirkeneserveircarrdrayddns-ipatriafresenius-central-2friuli-v-giuliarafriuli-ve-giuliafriuli-vegiuliafriuli-venezia-giuliafriuli-veneziagiuliafriuli-vgiuliafriuliv-giuliafriulive-giuliafriulivegiuliafriulivenezia-giuliafriuliveneziagiuliafriulivgiuliafrlfroganserveminecraftrentin-sued-tirolfrognfrolandynuhosting-clusterfrom-akamaiorigin-staginguitarservemp3from-alfrom-arfrom-azureedgekey-stagingujaratmetacentrumbriafrom-callyfrom-cockpitrentin-suedtirolfrom-ctrentino-a-adigefrom-dcasacampinagrandebulsan-suedtiroluxenonconnectoyourafrom-debianfrom-flatangerfrom-gamvikatsuyamashikizunokuniminamiashigarafrom-hidnservep2pimientakazakinzais-a-bruinsfanfrom-iafrom-idynv6from-ilfrom-in-the-bandairtrafficplexus-2from-kservepicservequakefrom-kyfrom-lamericanexpresseljordyroyrvikingroceryfrom-malvikaufentigerfrom-mdfrom-meetrentino-aadigefrom-mifunefrom-mnfrom-modalenfrom-mservesarcasmolaquilarvikautokeinotionfrom-mtlservicebuskerudfrom-ncasertainairflowersalvadorfrom-ndfrom-nefrom-nhlfanfrom-njsevastopolitiendafrom-nminamiyamashirokawanabeepsongdalenviknagaraholtaleniwaizumiotsurugashimagazinefrom-nvalled-aostaobaolbia-tempio-olbiatempioolbialowiezachpomorskiengiangujohanamakinoharafrom-nyatomigrationidfrom-ohdancefrom-okegawatsonionjukujitawarafrom-orfrom-palmasfjordenfrom-praxihuanfrom-ris-a-bulls-fanfrom-schmidtre-gauldalfrom-sdfrom-tnfrom-txn--3bst00minanofrom-utsiracusagamiharafrom-val-daostavalleyfrom-vtrentino-alto-adigefrom-wafrom-wiardwebspace-hostorachampionshiptodayfrom-wvalledaostargetrentino-altoadigefrom-wyfrosinonefrostalowa-wolawafroyal-commissionporterfruskydivingulenfujiiderafujikawaguchikonefujiminokamoenais-a-candidatefujinomiyadatsunanjoetsulublindesnesevenassieradzfujiokazakirovogradoyfujisatoshoesewestus2fujisawafujishiroishidakabiratoridecafederation-ranchernigovallee-aosteroyfujitsuruokagoshimamurogawafujiyoshidattorelayfukayabeagleboardfukuchiyamadattoweberlevagangaviikanonjis-a-catererfukudomigawafukuis-a-celticsfanfukumitsubishigakiryuohkurafukuokakamigaharafukuroishikariwakunigamihamadavvenjargalsacefukusakisarazure-apigeefukuyamagatakaharunjargaularavellinodeobjectstoragefunabashiriuchinadavvesiidaknongunmaoris-a-chefarsundyndns-office-on-the-webflowtest-iservebloginlinefunagatakahashimamakishiwadazaifudaigoguovdageaidnunusualpersonfunahashikamiamakusatsumasendaisenergyeonggildeskaliszfundfunkfeuerfunnelsexyfuoiskujukuriyamandalfuosskodjeezfurubirafurudonordre-landfurukawaiishoppingushikamifuranore-og-uvdalfusodegaurafussagemakerfutabayamaguchinomihachimanagementrentino-s-tirolfutboldlygoingnowhere-for-more-og-romsdalfuttsurutashinais-a-conservativefsnoasakakinokiafuturecmsheezyfuturehostingxn--3ds443gzfuturemailingfvghakonehakubaclieu-1hakuis-a-cpaneliv-dnshimosuwalkis-a-cubicle-slaveroykenhakusandnessjoenhaldenhalfmoonscaleforcehalsaitamatsukuris-a-democratrentino-stirolham-radio-opocznortonkotsumomodelscapetownnews-staginghamburghammarfeastasiahamurakamigoris-a-designerhanamigawahanawahandahandcraftedugit-pages-researchedmarketplacehangglidinghangoutrentino-sud-tirolhannannestadhannoshiroomghanoipinbrowsersafetymarketshimotsukehanyuzenhappoumuginowaniihamatamakawajimangolffanshimotsumayfirstreamlitappinkddiamondshinichinanhasamazoncognito-idpdnshinjotelulucaniahasaminami-alpshinjukuleuvenicehashbanghasudahasura-appinokofuefukihaborovigoldpoint2thisamitsukehasvikfh-muensterhatenablogisticsxn--3e0b707ehatenadiaryhatinhachiojiyachtshellhatogayahabacninhbinhdinhktrentino-sudtirolhatoyamazakitakamiizumisanofidongthapmircloudnsupdaterhatsukaichikawamisatohokkaidonnakanotoddenhattfjelldalhayashimamotobusellfyis-a-doctoruncontainershinkamigotourshinshinotsupplyhazuminobushibuyahikobearblogsiteleaf-south-1helpgfoggiahelsinkitakatakanabeardubaioirasebastopoleapcellclstagehirnhemneshinshirohemsedalhepforgeblockshintokushimaheroyhetemlbfanheyflowhoswholidayhigashiagatsumagoianiahigashichichibuzentsujiiehigashihiroshimanehigashiizumozakitakyushunantankhakassiahigashikagawahigashikagurasoedahigashikawakitaaikitamiharunzenhigashikurumegurownproviderhigashimatsushimarcherkasykkylvenneslaskerrypropertieshintomikasaharahigashimatsuyamakitaakitadaitoigawahigashimurayamamotorcycleshinyoshitomiokamishihorohigashinarusells-for-lesshiojirishirifujiedahigashinehigashiomitamamurausukitamotosumy-routerhigashiosakasayamanakakogawahigashishirakawamatakanezawahigashisumiyoshikawaminamiaikitanakagusukumodenaklodzkobierzycehigashitsunotairesindevicenzamamihokksundhigashiurawa-mazowszexposeducationhercules-appioneerhigashiyamatokoriyamanashijonawatehigashiyodogawahigashiyoshinogaris-a-financialadvisor-aurdalhiphoplixn--3hcrj9cashorokanaiehippythonanywherealtorhiraizumisatokaizukakudamatsuehirakatashinagawahiranais-a-fullstackharkivallee-d-aostehirarahiratsukagawahirayahoooshikamagayaitakaokalmykiahitachiomiyakehitachiotaketakarazukaluganskharkovalleeaostehitradinghjartdalhjelmelandholyhomegoodshioyaltaketomisatoyakokonoehomeipippugliahomelinuxn--3pxu8khersonyhomesecuritymacaparecidahomesecuritypccwuozuerichardliguriahomesenseeringhomeskleppivohostinghomeunixn--41ahondahonjyoitakasagonohejis-a-geekhmelnitskiyamashikokuchuohornindalhorsells-for-usgovcloudapilottotalhortenkawahospitalhotelwithflightshirahamatonbetsupportrentino-sued-tirolhotmailhoyangerhoylandetakasakitashiobarahrsnillfjordhungyenhurdalhurumajis-a-goodyearhyllestadhyogoris-a-greenhypernodessaitokamachippubetsuikitaurahyugawarahyundaiwafuneis-not-certifiedis-savedis-slickhplayitrentinos-tirolis-uberleetrentinostirolis-very-badis-very-evillasalleitungsenis-very-goodis-very-niceis-very-sweetpepperugiais-with-thebandoomdnshisuifuettertdasnetzisk01isk02jenv-arubahcavuotnagahamaroygardengerdalp1jeonnamsosnowiecateringebumbleshrimperiajetztrentinosud-tiroljevnakerjewelryjlljls-sto1jls-sto2jls-sto365jmpiwatejnjdfirmalborkdaljouwwebhoptokigawajoyokaichibahccavuotnagaivuotnagaokakyotambabia-goraclecloudappssejny-2jozis-a-knightpointtokashikiwakuratejpmorgangwonjpncatfoodrivelandrobakamaihd-stagingloomy-gatewayjprshitaramakoseis-a-libertariankosherokuappizzakoshimizumakis-a-linux-useranishiaritabashikshacknetlifylkesbiblackfridaynightrentino-suedtirolkoshugheshizuokamitsuekosugekotohiradomainshoujis-a-llamarugame-hostrowieconomiasadogadobeioruntimedicinakanojogaszkolamdongnairlineedleasingkotourakouhokumakogenkounosunnydaykouyamassa-carrara-massacarraramassabuzzkouzushimassivegridkozagawakozakis-a-musiciankozowienkppspbarsycenterprisecloudbeesusercontentaveusercontentawktoyonakagyokutoyonezawauiusercontentdllive-websitebizenakasatsunairportashkentatamotors3-deprecatedgcaffeinehimejibxos3-eu-central-1krasnikahokutokyotangopensocialkrasnodarkredumbrellapykrelliankristiansandcatshowakristiansundkrodsheradkrokstadelvaldaostaticsigdalkropyvnytskyis-a-nascarfankrymisasaguris-a-nursells-itrentinoa-adigekumamotoyamasudakumanowtvaomoriguchiharag-cloud-charternopilawakayamafeloabatochigiehtavuoatnabudejjurkumatorinokumejimatlabgkumenanyokkaichirurgiens-dentistes-en-francekundenkunisakis-a-painterhostsolutionshiranukamisunagawakunitachiaraisaijolsterkunitomigusukukis-a-patsfankunneppubtlsiiitesilknx-serversicherungkuokgroupkomatsushimasoykurgankurobeebyteappenginekurogiminamiawajikis-a-personaltrainerkuroisoftwarendalenugkuromatsunais-a-photographermesserlikescandypoppdalkuronkurotakikawasakis-a-playershiftrentinoaadigekushirogawakustanais-a-republicanonoichinosekigaharakusupabaseoullensakerkutchanelkutnokuzumakis-a-rockstarachowicekvafjordkvalsundkvamfamplifyappchizipifony-1kvanangenkvinesdalkvinnheradkviteseidatingkvitsoykwpspdnsimple-urlmktgorymmvareservdmoliserniamombetsuppliesimplesitemonza-brianzapposirdalmonza-e-della-brianzaptomobegetmyipirangallocustomer-ocienciamonzabrianzaramonzaebrianzamonzaedellabrianzamordoviamorenarashinoharamoriyamatsumotofukemoriyoshiminamibosogndalmormonstermoroyamatsunomortgagemoscowiiheyaizuwakamatsubushikusakadogawamoseushimoichikuzenmosjoenmoskenesiskomaganemosslingmotegirlymoviemovimientonsbergmtnmtranaritakurashikis-a-socialistordalmuikaminoyamaxunison-serviceslupskomforbarrell-of-knowledgeu-central-2mukodairamunakatanemuosattemupl-wawsappspacehostedpicardmurmanskommunalforbundmurotorcraftrentinosued-tirolmusashinodesakatakatsukis-a-soxfanmuseumisawamusicampobassociateslzmutsuzawamutualmyactivedirectorymyaddrangedalmyamazeplaystation-cloudyclustersmushcdn77-sslgbtrentinosuedtirolmyasustor-elvdalmycloudnasushiobaramydattolocalcertificationmydbservermyddnskingmydissentrentinsud-tirolmydnsokamogawamydobissmarterthanyousrcfdmydsokndalmyeffectrentinsudtirolmyfastly-edgemyfirewalledreplittlestargardmyforumisconfusedmyfritzmyftpaccessolardalmyhome-servermyjinomykolaivencloud66mymailermymediapcatholicp1mynetnamegawamyokohamamatsudamypeplatter-applcube-serversusakis-a-studentalmypetsolundbeckommunemyphotoshibalena-devicesomamypigboatsomnaturalmypsxn--45br5cylmyrdbxn--45brj9caxiaskimitsubatamicrolightingloppennemysecuritycamerakermyshopblocksoowilliamhillmyshopifymyspreadshopselectrentinsued-tirolmysynologyeongnamdinhs-heilbronnoysundmytabitordermythic-beastsopotrentinsuedtirolmytis-a-bloggermytuleap-partnersor-odalmyvnchernovtsydneymywiredbladehostingpodhalepodlasiellakdnepropetrovskanlandpodzonepohlpoivronpokerpokrovskomonotteroypolkowicepoltavalle-aostavangerpolyspacepomorzeszowinbarsyonlinexus-3ponpesaro-urbino-pesarourbinopesaromasvuotnarusawapordenonepornporsangerporsangugeporsgrunnanpoznanprdprereleaserveftplockerprgmrprimeteleportrentoyookanazawaprincipenzaprivatelinkyard-cloudletsor-varangerprivatizehealthinsuranceprogressivegarsheiyufueliv-apiemontepromoldefinimaringatlangsondriobranconakamai-stagingpropertysfjordprotectionprotonettrevisohuissier-justiceprudentialpruszkowindowsservegame-serverprvcyou2-localtonetroandindependent-inquest-a-la-masionprvwineprzeworskogpunyukis-a-teacherkassyncloudpupulawypussycatanzarowinnersorfoldpvhachirogatakamoriokakegawapvtrogstadpwchiryukyuragifuchungbukharavennakaiwanairforceopzqotoyohashimotottoris-a-techietis-a-gurusgovcloudappnodeartheworkpcasinorddaluxuryqponiatowadaqsldqualifioapplumbingotembaixadaqualyhqpartnerqualyhqportalquangngais-a-therapistoiaquangninhthuanquangtritonoshonais-an-accountantshiraois-a-hard-workershirakolobrzegersundojin-dslattuminisitequickconnectroitskomorotsukamiminequicksytesorocabalestrandabergamobaragusabaerobaticketsorreisahayakawakamiichinomiyagitbookinghosteurovisionrenderquipelementsortlandquizzesorumishimatsumaebashimogosenqzzventurestaurantulaspeziavestfoldvestnesquaresinstagingvestre-slidrecifedexperts-comptablesrhtrustkaneyamazoevestre-totenris-an-anarchistorfjordvestvagoyvevelstadvfsrlvibo-valentiavibovalentiavideovinhphuchonanbungotakadaptableclercaobanglogowegroweiboliviajessheimmobilienisshingucciminamiechizeniyodogawavinnicanva-hosted-embedzin-buttervinnytsiavipsinaapplurinacionalvirginankokubunjis-an-artistorjdevcloudjiffyresdalvirtual-uservecounterstrikevirtualservervirtualuserveexchangevisakuholeckochikushinonsenasakuchinotsuchiurakawaviterboknowsitallvivianvivoryvixn--4dbgdty6choseikarugallupfizervkis-an-engineeringvlaanderenvladikavkazimierz-dolnyvladimirennesoyvlogvmitoyoakevolvologdanskonskowolayangroupixolinodeusercontentrentinosudtirolvolyngdalvoorlopervossevangenvotevotingvotoyosatoyonovpnplus-west-3vps-hostrynvusercontentunespritesoundcastripperwithgoogleapiszwithyoutubentrendhostingwiwatsukiyonotebook-fipstuff-4-salewixsitewixstudio-fipstufftoread-booksnesowawjgorawkzwloclawekonsulatinowruzhgorodwmcloudwmeloywmflabsurveyspectrumisugitolgap-north-1wnextdirectwpdevcloudwoodsideliveryworldworse-thanhphohochiminhackerwowiosrvrlessourcecraftromsakegawawpenginepoweredwphostedmailwpmucdn77-storagencywpmudevinappsusonowpsquaredwroclawsglobalacceleratorahimeshimagine-proxywtcp4wtfastly-terrariuminamiminowawwwitdkontogurawzmiuwajimaxn--54b7fta0cchoshichikashukudoyamalatvuopmicrosoftbankasaokamikitayamatsurindigenamsskoganeindustriaxn--55qw42gxn--55qx5dxn--5dbhl8dxn--5js045dxn--5rtp49chowderxn--5rtq34konyvelolipopmckinseyxn--5su34j936bgsgxn--5tzm5gxn--6btw5axn--6frz82gxn--6orx2rxn--6qq986b3xlxn--7t0a264choyodobashichinohealthcareersame-previeweirxn--80aaa0cvacationsuzakarpattiaaxn--80adxhksuzukananiimilanoticiassurgerydxn--80ao21axn--80aqecdr1axn--80asehdbasicserver-on-k3s3-me-south-1xn--80aswgxn--80audiopsysuzukis-an-actorxn--8dbq2axn--8ltr62koobindalxn--8pvr4uzhhorodxn--8y0a063axn--90a1affinitylotterybnikeeneticp0xn--90a3academiamibubbleappspotagerxn--90aeroportsinfolkebibleangaviikafjordpabianicentralus-1xn--90aishobaraoxn--90amcprequalifymeiwamizawaxn--90azhytomyradweblikes-piedmontunkoninfernovecorespeedpartnerxn--9dbq2axn--9et52uzsprytromsojampanasonichitachinakagawarmiastaplesame-appaviaxn--9krt00axn--9tfkyxn--andy-iraxn--aroport-byamembersvalbarduponthewifidelitypeformitourismilexn--asky-iraxn--aurskog-hland-jnbasilicataniaukraanghkeisenebakkeshibukawakeliwebhostingdyniakunemurorangecloudscalebookonlineustarostwodzislawdev-myqnapcloudflarecn-northwest-1xn--avery-yuasakuragawaxn--b-5gausdalxn--b4w605ferdxn--balsan-sdtirol-nsbasketballfinanzjaworznoticeableksvikapsiciliaurland-4-salernombrendlyngenflfanpachihayaakasakawaharaffleentrycloudflare-ipfstgstageorgeorgiap-southeast-4xn--bck1b9a5dre4chrome-central-1xn--bdddj-mrabdxn--bearalvhki-y4axn--berlevg-jxaxn--bhcavuotna-s4axn--bhccavuotna-k7axn--bidr-5nachikatsuuraxn--bievt-0qa2hosted-by-previderxn--bjddar-ptarnobrzegxn--blt-elabkhaziaxn--bmlo-grafana-developmentunnelmolexn--bod-2naturbruksgymnxn--bozen-sdtirol-2obihirosakikamijimatsuzakis-an-entertainerxn--brnny-wuacademy-firewall-gatewayxn--brnnysund-m8accident-investigation-aptibleadpagespeedmobilizeropschaefflerxn--brum-voagaturindalxn--btsfjord-9zaxn--bulsan-sdtirol-nsbatsfjordigickaracologneu-south-1xn--c1avgxn--c2br7gxn--c3s14mittwaldserverxn--cck2b3bauhauspostman-echofunatoriginstitutemp-dns3-object-lambda-urlolitapunkaragandaurskog-holandinggff5xn--cckwcxetdxn--cesena-forl-mcbnpparibashkiriaxn--cesenaforl-i8axn--cg4bkis-byklecznagatoromskoguchilloutsystemscloudsitevaksdalxn--ciqpnxn--clchc0ea0b2g2a9gcdxn--czr694beppublic-inquiryonagoyaustevollivingitlabbvieeemfakefurniturealtimedio-campidano-mediocampidanomediobninsk8s3-eu-north-1xn--czrs0t0xn--czru2dxn--d1acj3beskidyn-ip24xn--d1alfastlylbarrel-of-knowledgesuite-stagingivingjemnes3-globalatinabelementorayomitanobservereggio-emilia-romagnarutoolsztynsetatsunofficialivornomniwebspaceconfigma-governmentattoolforgeu-4xn--d1aturystykanieruchomoscientistreakusercontentrvarggatrysiljanewayxn--d5qv7z876chungnamdalseidfjordrrppgwangjulvikashibatakatorindustriesteinkjerxn--davvenjrga-y4axn--djrs72d6uyxn--djty4kooris-a-lawyerxn--dnna-graingerxn--drbak-wuaxn--dyry-iraxn--e1a4churchateblobanazawanggoupilefrakkestadtvsamegawaxn--eckvdtc9dxn--efvn9svchitosetogakushimotoganexn--efvy88hadanorth-kazakhstanxn--ehqz56nxn--elqq16hadselbuyshouseshimonitayanagitappwritesthisblogdnsfor-better-thanhhoamishirasatohnoshookuwanakatsugawaxn--eveni-0qa01gaxn--f6qx53axn--fct429kopervikmpspawnbaseminexn--fhbeiarnxn--finny-yuaxn--fiq228c5hsbciprianiigataipeigersundtwhitesnowflakeyword-onfabricafjsamnangerxn--fiq64bestbuyshoparenagareyamagicpatternsapporokunohealth-carereformemorialombardiademergentagents3-sa-east-1xn--fiqs8sveioxn--fiqz9svelvikongsvingerxn--fjord-lraxn--fjq720axn--fl-ziaxn--flor-jraxn--flw351exn--forl-cesena-fcbremangerxn--forlcesena-c8axn--fpcrj9c3dxn--frde-grajewolterskluwerxn--frna-woarais-certifiedxn--frya-hraxn--fzc2c9e2circleaninglugsjcbgmbhartinnxn--fzys8d69uvgmailxn--g2xx48ciscofreakadnsaliases121xn--gckr3f0fastvps-serveronakatombetsumitakagiizeaburxn--gecrj9cistrondheiminamiiseharaxn--ggaviika-8ya47haebaruericssonlanxesshimonosekikawaxn--gildeskl-g0axn--givuotna-8yanagawaxn--gjvik-wuaxn--gk3at1exn--gls-elacaixaxn--gmq050is-coolblogspotrentinoalto-adigexn--gmqw5axn--gnstigbestellen-zvbetaharanzanquangnamasteigenkainanaejrietiengiangjerdrumemsetaxiijimarnardalombardynamisches-dns3-us-east-2xn--gnstigliefern-wobiraxn--h-2failxn--h1ahnxn--h1alizxn--h2breg3evenesvn-reposphinxn--45q11cooldns-cloudflareglobalashovhackclubartowhmincommbankazoxn--h2brj9c8citadelhichisoctrangminakamichikaiseiyoichipsamparaglidingmodellingmx-central-1xn--h3cuzk1dielddanuorrittogojomediatechnologyeongbukoryokamikawanehonbetsuwanouchikuhokuryugasakis-a-liberalxn--hbmer-xqaxn--hcesuolo-7ya35bhzc66xn--hebda8bialystokkepnord-aurdalwaysdatabase44-sandboxfuseekarasjohkameyamatotakadaustrheimbamblebtimnetzgorzeleccocottemprendealstahaugesundereggio-calabriap-southeast-5xn--hery-iraxn--hgebostad-g3axn--hkkinen-5waxn--hmmrfeasta-s4accident-prevention-fleeklogesquare7xn--hnefoss-q1axn--hobl-iraxn--holtlen-hxaxn--hpmir-xqaxn--hxt814exn--hyanger-q1axn--hylandet-54axn--i1b6b1a6a2exn--imr513nxn--indery-fyanaizuxn--io0a7is-foundationxn--j1adpmnxn--j1aefauskedsmokorsetagayaseralingenoaiusercontentranoyxn--j1ael8bielawalbrzychaselfiparliamentayninhachijoinmcdireggiocalabriauth-fipsiqcxjavald-aostatichostreak-linkanumazuryokozempresashibetsukumiyamagasakinkobayashimofusagaeroclubmedecin-berlindasdaejeonbuk0emmafann-arborlanddl-o-g-i-nayoro0o0g0xn--j1amhagakhanhhoabinhduongxn--j6w193gxn--jlq480n2rgxn--jlster-byandexcloudxn--jrpeland-54axn--jvr189miuraxn--k7yn95exn--karmy-yuaxn--kbrq7oxn--kcrx77d1x4axn--kfjord-iuaxn--klbu-woaxn--klt787dxn--kltp7dxn--kltx9axn--klty5xn--4dbrk0cexn--koluokta-7ya57hagebostadxn--kprw13dxn--kpry57dxn--kput3is-gonexn--krager-gyaotsurnadalxn--kranghke-b0axn--krdsherad-m8axn--krehamn-dxaxn--krjohka-hwab49jejusgovtrafficmanagerxn--ksnes-uuaxn--kvfjord-nxaxn--kvitsy-fyasakaiminatoyotap-southeast-3xn--kvnangen-k0axn--l-1fairwindsurfbsbxn--1qqw23axn--l1accentureklamborghinikonantoshimatsusakahoginozawaonsennanmokurennebunkyonanaoshimamateramochausercontentuscanyxn--laheadju-7yasugithubusercontentushungryxn--langevg-jxaxn--lcvr32dxn--ldingen-q1axn--leagaviika-52biella-speziauthgear-stagingitpagemrappui-productions3-eu-west-1xn--lesund-huaxn--lgbbat1ad8jelasticbeanstalklabudhabikinokawabajddarvanedgecompute-1xn--lgrd-poacctfcloudflareanycastdlibestadultuvalle-daostakkomakis-an-actresshiraokamitondabayashiogamagoriziaxn--lhppi-xqaxn--linds-pratoyotomiyazakis-into-animeinforumzxn--loabt-0qaxn--lrdal-sraxn--lrenskog-54axn--lt-liaciticurus-4xn--lten-granexn--lury-iraxn--m3ch0j3axn--mely-iraxn--merker-kuaxn--mgb2ddeswidnicanva-appspjelkavikomvuxn--42c2d9axn--mgb9awbfbx-osaveincloudyndns-picsbsarpsborgripeeweeklylotteryxn--mgba3a3ejtuxfamilyxn--mgba3a4f16axn--mgba3a4fra1-dell-ogliastrapiappleyxn--mgba7c0bbn0axn--mgbaam7a8haibarakitahiroshimap-south-2xn--mgbab2bdxn--mgbah1a3hjkrdxn--mgbai9a5eva00bielskoczow-credentialless-staticblitzlgjerstadiscordsays3-us-gov-east-1xn--mgbai9azgqp6jelenia-goraxn--mgbayh7gparallelxn--mgbbh1a71exn--mgbc0a9azcgxn--mgbca7dzdoxn--mgbcpq6gpa1axn--mgberp4a5d4a87gxn--mgberp4a5d4arxn--mgbgu82axn--mgbi4ecexperimentswidnikitagatakinouexn--mgbpl2fhskosaigawaxn--mgbqly7c0a67fbcivilaviation-riopretogitsulidluyaniizaporizhzhiaxn--mgbqly7cvafricanvacode-builder-stg-builderxn--mgbt3dhdxn--mgbtf8fldrvaroyxn--mgbtx2bieszczadygeyachimataijiiyamanouchikujoinvilleirvikarasjoketokuyamarumorimachidauthgearapps-1and1xn--mgbx4cd0abogadobeaemcloud-ip6xn--mix082fbxosaves-the-whalessandria-trani-barletta-andriatranibarlettaandriaxn--mix891fedjeducatorprojectransfer-webapp-fipsavonatalxn--mjndalen-64axn--mk0axindependent-inquiryxn--mk1bu44clanbibaiduckdnsamsclubin-vpndnsamsungotsukisofukushimaniwamannordreisa-hockeynutwentertainmentoystre-slidrettozawaxn--mkru45is-into-carshiratakahagiangxn--mlatvuopmi-s4axn--mli-tlavagiskexn--mlselv-iuaxn--moreke-juaxn--mori-qsakurais-into-cartoonshishikuis-a-hunterxn--mosjen-eyasuokanmakiyokawaraxn--mot-tlavangenxn--mre-og-romsdal-qqbuserveboltuyenquangbinhthuanxn--msy-ula0haiduongxn--mtta-vrjjat-k7aflakstadaokayamazonaws-cloud9xn--muost-0qaxn--mxtq1miyazure-mobilexn--ngbc5azdxn--ngbe9e0axn--ngbrxn--4gbriminiserverxn--nit225kosakaerodromegadgets-itcouldbeworfashionstorebaseballooningroks-theatrentin-sud-tirolxn--nmesjevuemie-tcbalsan-sudtirolkuszczytnoopstmnxn--nnx388axn--nodellogliastraderxn--nqv7fs00emaxn--nry-yla5gxn--ntso0iqx3axn--ntsq17gxn--nttery-byaeservehalflifeinsurancexn--nvuotna-hwaxn--nyqy26axn--o1achernivtsienaharimakeupsunappgafanxn--o3cw4haiphongonnakayamangyshlakamaized-stagingxn--o3cyx2axn--od0algardxn--od0aq3bievathletajimabaria-vungtaudibleborkangereggioemiliaromagnarviikamiokameokamakurazakiwielunnerehabmereisenishinomiyashironomurauthordalandroidgnishiizunazukifr-1xn--ogbpf8flekkefjordxn--oppegrd-ixaxn--ostery-fyatsukannamimatakasugais-into-gamessinaplesknshisognexn--osyro-wuaxn--otu796dxn--p1acfolkswiebodzindependent-commissionxn--p1ais-leetrentinoaltoadigexn--pgbs0dhlxn--4it168dxn--porsgu-sta26fedorainfracloudfunctionsaxoxn--pssu33lxn--pssy2uxn--q7ce6axn--q9jyb4cldmail-boxn--1lqs71durbanamexnetgamersandvikcoromantovalle-d-aostavernxn--qcka1pmclerkstagexn--qqqt11miyotamanoxn--qxa6axn--qxamjondalenxn--rady-iraxn--rdal-poaxn--rde-ulazioxn--rdy-0nabaris-localplayerxn--rennesy-v1axn--rhkkervju-01afedorapeopleikangerxn--rholt-mragowoltlab-democraciaxn--rhqv96gxn--rht27zxn--rht3dxn--rht61exn--risa-5navigationxn--risr-iraxn--rland-uuaxn--rlingen-mxaxn--rmskog-byatsushiroxn--rny31hair-surveillancexn--rovu88bifukagawalesundiscordsezpisdnipropetrovskypecorindependent-paneliv-cdn77-securealmesswithdns3-us-gov-west-1xn--rros-granvindafjordxn--rskog-uuaxn--rst-0navois-lostrolekamaishimodatexn--rsta-framercanvaswinoujsciencexn--rvc1e0am3exn--ryken-vuaxn--ryrvik-byawaraxn--s-1faithainguyenxn--s9brj9clever-clouderavpagexn--sandnessjen-ogbizxn--sandy-yuaxn--sdtirol-n2axn--seral-lraxn--ses554gxn--sgne-graphicswisspockongsbergxn--skierv-utazurecontainerimakanegasakis-not-axn--skjervy-v1axn--skjk-soaxn--sknit-yqaxn--sknland-fxaxn--slat-5navuotnaroyxn--slt-elabrdns-dynamic-dnsabruzzombieidskogasawarackmazerbaijan-mayenbaidarchitectestingrok-freeddnsgeekgalaxyzxn--smla-hraxn--smna-gratangenxn--snase-nraxn--sndre-land-0cbigv-infolldalomodxn--11b4c3discountry-snowplowiczeladzw-staticblitzxn--snes-poaxn--snsa-roaxn--sr-aurdal-l8axn--sr-fron-q1axn--sr-odal-q1axn--sr-varanger-ggbiharstadotsubetsugaruhr-uni-bochumsochimkenthickarasuyamashikeu-south-2xn--srfold-byawatahamaxn--srreisa-q1axn--srum-gratis-a-bookkeepermarriottwmailxn--stfold-9xaxn--stjrdal-s1axn--stjrdalshalsen-sqbihoronobeokagakikiraraumaintenanceu1-plenittedalomzaporizhzhegurindependent-review3s3-us-west-1xn--stre-toten-zcbikedaemongolianishinoomotegoismailillehammerfeste-iparmatta-varjjathruherebungoonomutazas3-us-west-2xn--t60b56axn--tckwebthingsxn--tiq49xqyjellybeanxn--tjme-hraxn--tn0agrondarqtxn--tnsberg-q1axn--tor131oxn--trany-yuaxn--trentin-sd-tirol-rzbioxn--trentin-sdtirol-7vbirkenesoddtangentapps3-website-ap-northeast-1xn--trentino-sd-tirol-c3bittermezproxyonagunicloudiscourses3-website-ap-southeast-1xn--trentino-sdtirol-szbjerkreimdbarcelonagawakuyabukihokuizumocha-sandboxmitakeharaudnedalnishigorlicebinordkapparisor-fronishiharakrehamnishiazaibradescotaribeiraogakicks-assncf-ipfs3-ap-southeast-2ixboxeroxajuniperecreationirasakibigawaknoluoktachikawafflecellpagest-mon-blogueurodirumaceratagajobojibmdeuxfleurs3-ap-southeast-1337xn--trentinosd-tirol-rzbjugnishinoshimatsuurautoscanaryggeemrnotebooks-prodeobservableusercontentatarantoyokawap-southeast-6116-bambinagisobetsuldalpha-myqnapcloudaccess3-ap-northeast-2038xn--trentinosdtirol-7vbloombergentingjesdalondonetskaratsuginamikatagamimozaokinawashirosatobishimadridvagsoyereithuathienhueusc-de-east-1xn--trentinsd-tirol-6vblushakotanishiokoppegardiscoverdalondrinapolicevervaultjeldsundisharparochernihivgubarclaycards3-fips-us-gov-east-1xn--trentinsdtirol-nsbmoattachments3-website-ap-southeast-2xn--trgstad-r1axn--trna-woaxn--troms-zuaxn--tysvr-vraxn--uc0atvegaspydebergxn--uc0ay4axn--uist22hakatanorthflankazunotogawaxn--uisz3gxn--unjrga-rtarpitxn--unup4yxn--uuwu58axn--vads-jraxn--valle-aoste-ebbtxn--valle-d-aoste-ehboehringerikerxn--valleaoste-e7axn--valledaoste-ebbvadsoccerxn--vard-jraxn--vegrshei-c0axn--vermgensberater-ctb-hostingxn--vermgensberatung-pwbms3-website-eu-west-1xn--vestvgy-ixa6oxn--vg-yiabmwcloudnonproddagestangevje-og-hornnes3-website-sa-east-1xn--vgan-qoaxn--vgsy-qoa0j0xn--vgu402cleverappsangotpantheonsitexn--vhquvelvetuckerxn--vler-qoaxn--vre-eiker-k8axn--vrggt-xqadxn--vry-yla5gxn--vuq861bnrweatherchannelsdvrdns3-website-us-east-1xn--w4r85el8fhu5dnraxn--w4rs40lxn--wcvs22dxn--wgbh1clickrisinglesjaguarvodkafkashiharaxn--wgbl6axn--xhq521bolognagasakikonaircraftraeumtgeradealerdalcest-le-patron-forgerockyotobetsucks3-website-us-gov-west-1xn--xkc2al3hye2axn--xkc2dl3a5ee0hakodatexn--y9a3aquarellebesbyencowayxn--yer-znavyxn--yfro4i67oxn--ygarden-p1axn--ygbi2ammxn--4it797kontumintshizukuishimojis-a-landscaperspectakashimarshallstatebankhmelnytskyivalleedaostexn--ystre-slidre-ujbolzano-altoadigextraspace-to-rentalstomakomaibaravocats3-eu-west-2xn--zbx025dxn--zf0avxn--4pvxs4allxn--zfr164bomlodingenishitosashimizunaminamidaitomanaustdalopparachutingjovikareliancexnbayernxtooldevicexz \ No newline at end of file +bolzano-altoadigevje-og-hornnes3-website-us-west-2bomlocustomer-ocienciabonavstackarasjoketokuyamashikokuchuobondigitaloceanspacesakurastoragextraspace-to-rentalstomakomaibarabonesakuratanishikatakazakindustriesteinkjerepbodynaliasnesoddeno-staginglobodoes-itcouldbeworfarsundiskussionsbereichateblobanazawarszawashtenawsapprunnerdpoliticaarparliamenthickarasuyamasoybookonlineboomladeskierniewiceboschristmasakilovecollegefantasyleaguedagestangebostik-serveronagasukeyword-oncillahppictetcieszynishikatsuragit-repostre-totendofinternet-dnsakurawebredirectmeiwamizawabostonakijinsekikogentlentapisa-geekaratsuginamikatagamimozaporizhzhegurinfinitigooglecode-builder-stg-buildereporthruhereclaimsakyotanabellunord-odalvdalcest-le-patron-k3salangenishikawazukamishihorobotdashgabadaddjabbotthuathienhuebouncemerckmsdscloudisrechtrafficplexus-4boutiquebecologialaichaugianglogowegroweibolognagasakikugawaltervistaikillondonetskarelianceboutireserve-onlineboyfriendoftheinternetflixn--11b4c3ditchyouriparmabozen-sudtirolondrinaplesknsalatrobeneventoeidsvollorenskogloomy-gatewaybozen-suedtirolovableprojectjeldsundivtasvuodnakamai-stagingloppennebplaceditorxn--12c1fe0bradescotaruinternationalovepoparochernihivgubamblebtimnetzjaworznotebook-fips3-fips-us-gov-east-1brandivttasvuotnakamuratajirintlon-2brasiliadboxoslodingenishimerabravendbarcelonagawakuyabukikiraragusabaerobatickets3-fips-us-gov-west-1bresciaogashimadachicappabianiceobridgestonebrindisiciliabroadwaybroke-itvedestrandixn--12cfi8ixb8lovesickarlsoybrokerevistathellebrothermesserlidlplfinancialpusercontentjmaxxxn--12co0c3b4evalleaostargets-itjomeldalucaniabrumunddaluccampobassociatesalon-1brusselsaloonishinomiyashironobryanskiervadsoccerhcloudyclusterbrynebweirbzhitomirumaintenanceclothingdustdatadetectoyouracngovtoystre-slidrettozawacnpyatigorskjakamaiedge-stagingreatercnsapporocntozsdeliverycodebergrayjayleaguesardegnarutoshimatta-varjjatranatalcodespotenzakopanecoffeedbackanagawatsonrendercommunity-prochowicecomockashiharacompanyantaishinomakimobetsulifestylefrakkestadurumisakindlegnicahcesuolohmusashimurayamaizuruhr-uni-bochuminamiechizenisshingucciminamifuranocomparemarkerryhotelsardiniacomputercomsecretrosnubarclays3-me-south-1condoshiibabymilk3conferenceconstructioniyodogawaconsuladobeio-static-accesscamdvrcampaniaconsultantranbyconsultingretakamoriokakudamatsuecontactivetrail-central-1contagematsubaracontractorstabacgiangiangryconvexecute-apictureshinordkappaviacookingrimstadynathomebuiltwithdarklangevagrarchitectestingripeeweeklylotterycooperativano-frankivskjervoyagecoprofesionalchikugodaddyn-o-saureadymadethis-a-anarchistjordalshalsenl-ams-1corsicafederationfabricable-modemoneycosenzamamidorivnecosidnsdojoburgriwataraindroppdalcouchpotatofriesarlcouncilcouponstackitagawacozoracpservernamegataitogodoesntexisteingeekashiwaracqcxn--1lqs71dyndns-at-homedepotrani-andria-barletta-trani-andriacrankyotobetsulubin-dsldyndns-at-workisboringsakershusrcfdyndns-blogsiteleaf-south-1crdyndns-freeboxosarpsborgroks-theatrentin-sud-tirolcreditcardyndns-homednsarufutsunomiyawakasaikaitakokonoecreditunioncremonasharis-a-bulls-fancrewp2cricketnedalcrimeast-kazakhstanangercrispawnextdirectraniandriabarlettatraniandriacrminamiiseharacrotonecrownipfizercrsasayamacruisesaseboknowsitallcryptonomichiharacuisinellamdongnairflowersassaris-a-candidatecuneocuritibackdropalermobarag-cloud-charitydalp1cutegirlfriendyndns-ipgwangjulvikashiwazakizunokuniminamiashigarafedoraprojectransiphdfcbankasserverrankoshigayakagefeirafembetsukubankasukabeautypedreamhosterscrapper-sitefermodalenferraraferraris-a-celticsfanferreroticallynxn--2scrj9cargoboavistanbulsan-sudtiroluhanskarmoyfetsundyndns-remotewdhlx3fgroundhandlingroznyfhvalerfilegear-sg-1filminamiminowafinalfinancefinnoyfirebaseapphilipscrappingrphonefosscryptedyndns-serverdalfirenetgamerscrysecuritytacticscwestus2firenzeaburfirestonefirmdaleilaocairportranslatedyndns-webhareidsbergroks-thisayamanobearalvahkikonaikawachinaganoharamcoachampionshiphoplixn--1qqw23afishingokasellfyresdalfitjarfitnessettsurugashimamurogawafjalerfkasumigaurayasudaflesbergrueflickragerotikagoshimandalflierneflirflogintohmangoldpoint2thisamitsukefloppymntransportefloraclegovcloudappservehttpbincheonflorencefloripadualstackasuyakumoduminamioguni5floristanohatakaharunservehumourfloromskoguidefinimalopolskanittedalfltransurlflutterflowhitesnowflakeflyfncarrdiyfndyndns-wikinkobayashimofusadojin-the-bandairlinemurorangecloudplatformshakotanpachihayaakasakawaharacingrondarfoolfor-ourfor-somedusajserveircasacampinagrandebulsan-suedtirolukowesleyfor-theaterfordebianforexrotheworkpccwhminamisanrikubetsupersaleksvikaszubytemarketingvollforgotdnserveminecraftrapanikkoelnforli-cesena-forlicesenaforlikescandypopensocialforsalesforceforsandasuoloisirservemp3fortalfosneservep2photographysiofotravelersinsurancefoxn--30rr7yfozfr-1fr-par-1fr-par-2franalytics-gatewayfredrikstadyndns-worksauheradyndns-mailfreedesktopazimuthaibinhphuocprapidyndns1freemyiphostyhostinguitarservepicservequakefreesitefreetlservesarcasmilefreightravinhlonganfrenchkisshikirovogradoyfreseniuservicebuskerudynnsaveincloudyndns-office-on-the-webflowtest-iservebloginlinefriuli-v-giuliarafriuli-ve-giuliafriuli-vegiuliafriuli-venezia-giuliafriuli-veneziagiuliafriuli-vgiuliafriuliv-giuliafriulive-giuliafriulivegiuliafriulivenezia-giuliafriuliveneziagiuliafriulivgiuliafrlfrogansevastopolitiendafrognfrolandynservebbsaves-the-whalessandria-trani-barletta-andriatranibarlettaandriafrom-akamaiorigin-stagingujaratmetacentruminamitanefrom-alfrom-arfrom-azureedgecompute-1from-caltanissettainaircraftraeumtgeradealstahaugesunderfrom-cockpitrdynuniversitysvardofrom-ctrentin-sudtirolfrom-dcasertaipeigersundnparsaltdaluroyfrom-decafjsevenassieradzfrom-flatangerfrom-gap-southeast-3from-higashiagatsumagoianiafrom-iafrom-idynv6from-ilfrom-in-vpncashorokanaiefrom-ksewhoswholidayfrom-kyfrom-langsonyatomigrationfrom-mangyshlakamaized-stagingujohanamakinoharafrom-mdynvpnplusavonarviikamisatokonamerikawauefrom-meetrentin-sued-tirolfrom-mihamadanangoguchilloutsystemscloudscalebookinghosteurodirfrom-mnfrom-modellingulenfrom-msexyfrom-mtnfrom-ncasinordeste-idclkarpaczest-a-la-maisondre-landray-dnsaludrayddns-ipartintuitjxn--1ck2e1barclaycards3-globalatinabelementorayomitanobservableusercontentateyamauth-fipstmninomiyakonojosoyrovnoticeableitungsenirasakibxos3-ca-central-180reggio-emilia-romagnaroyolasitebinordlandeus-canvasitebizenakanojogaszkolamericanfamilyds3-ap-south-12hparallelimodxboxeroxjavald-aostaticsxmitakeharaugustow-corp-staticblitzgorzeleccocotteatonamifunebetsuikirkenes3-ap-northeast-2ixn--0trq7p7nninjambylive-oninohekinanporovigonnakasatsunaibigawaukraanghkembuchikumagayagawakkanaibetsubame-central-123websitebuildersvp4from-ndyroyrvikingrongrossetouchijiwadedyn-berlincolnfrom-nefrom-nhlfanfrom-njsheezyfrom-nminamiuonumatsunofrom-nvalled-aostargithubusercontentrentin-suedtirolfrom-nysagamiharafrom-ohdancefrom-okegawafrom-orfrom-palmasfjordenfrom-pratohnoshookuwanakanotoddenfrom-ris-a-chefashionstorebaseljordyndns-picsbssaudafrom-schmidtre-gauldalfrom-sdfrom-tnfrom-txn--32vp30hachinoheavyfrom-utsiracusagemakerfrom-val-daostavalleyfrom-vtrentino-a-adigefrom-wafrom-wiardwebspaceconfigunmarnardalfrom-wvalledaostarnobrzeguovdageaidnunjargausdalfrom-wyfrosinonefrostalowa-wolawafroyal-commissionfruskydivingushikamifuranorth-kazakhstanfujiiderafujikawaguchikonefujiminokamoenairtelebitbucketrzynh-servebeero-stageiseiroutingthecloudfujinomiyadappnodearthainguyenfujiokazakiryuohkurafujisatoshoeshellfujisawafujishiroishidakabiratoridediboxafujitsuruokakamigaharafujiyoshidatsunanjoetsumidaklakasamatsudogadobeioruntimedicinakaiwanairforcentralus-1fukayabeagleboardfukuchiyamadattorelayfukudomigawafukuis-a-conservativefsnoasakakinokiafukumitsubishigakisarazure-apigeefukuokakegawafukuroishikariwakunigamiharuovatlassian-dev-builderfukusakishiwadattoweberlevagangaviikanonjis-a-cpanelfukuyamagatakahashimamakisofukushimaniwamannordre-landfunabashiriuchinadavvenjargamvikatowicefunagatakahatakaishimokawafunahashikamiamakusatsumasendaisenergyeonggiizefundfunkfeuerfunnelshimonitayanagitapphutholdingsmall-websozais-a-cubicle-slaveroykenfuoiskujukuriyamaoris-a-democratrentino-aadigefuosskodjeezfurubirafurudonordreisa-hockeynutwentertainmentrentino-alto-adigefurukawaiishoppingxn--3bst00minamiyamashirokawanabeepsondriobranconagarahkkeravjunusualpersonfusoctrangyeongnamdinhs-heilbronnoysundfussaikisosakitahatakamatsukawafutabayamaguchinomihachimanagementrentino-altoadigefutboldlygoingnowhere-for-more-og-romsdalfuttsurutashinairtrafficmanagerfuturecmshimonosekikawafuturehosting-clusterfuturemailingzfvghakuis-a-doctoruncontainershimotsukehakusandnessjoenhaldenhalfmoonscaleforcehalsaitamatsukuris-a-financialadvisor-aurdalham-radio-ophuyenhamburghammarfeastasiahamurakamigoris-a-fullstackaufentigerhanamigawahanawahandahandcraftedugit-pages-researchedmarketplacehangglidinghangoutrentino-s-tirolhannannestadhannoshiroomghanoiphxn--3ds443ghanyuzenhappoumuginowaniihamatamakawajimap-southeast-4hasamazoncognitoigawahasaminami-alpshimotsumahashbanghasudahasura-appigboatshinichinanhasvikautokeinotionhatenablogspotrentino-stirolhatenadiaryhatinhachiojiyachiyodazaifudaigojomedio-campidano-mediocampidanomediohatogayachtshinjournalistorfjordhatoyamazakitakatakanezawahatsukaichikawamisatohokkaidontexistmein-iservschulegalleryhattfjelldalhayashimamotobusells-for-lesshinjukuleuvenicehazuminobushibuyahabacninhbinhdinhktrentino-sud-tirolhelpgfoggiahelsinkitakyushunantankazohemneshinkamigotoyokawahemsedalhepforgeblockshinshinotsupplyhetemlbfanheyflowienhigashichichibuzzhigashihiroshimanehigashiizumozakitamihokksundhigashikagawahigashikagurasoedahigashikawakitaaikitamotosumy-routerhigashikurumegurownproviderhigashimatsushimarriottrentino-sudtirolhigashimatsuyamakitaakitadaitomanaustdalhigashimurayamamotorcycleshinshirohigashinarusells-for-uzhhorodhigashinehigashiomitamamurausukitanakagusukumodshintokushimahigashiosakasayamanakakogawahigashishirakawamatakaokalmykiahigashisumiyoshikawaminamiaikitashiobarahigashitsunospamproxyhigashiurawa-mazowszexposeducatorprojectrentino-sued-tirolhigashiyamatokoriyamanashijonawatehigashiyodogawahigashiyoshinogaris-a-geekazunotogawahippythonanywherealminanohiraizumisatokaizukaluganskddiamondshintomikasaharahirakatashinagawahiranais-a-goodyearhirarahiratsukagawahirayahikobeatshinyoshitomiokamisunagawahitachiomiyakehitachiotaketakarazukamaishimodatehitradinghjartdalhjelmelandholyhomegoodshiojirishirifujiedahomeipikehomelinuxn--3e0b707ehomesecuritymacaparecidahomesecuritypcateringebungotakadaptableclerc66116-balsfjordeltaiwanumatajimidsundeportebinatsukigatakahamalvik8s3-ap-northeast-3utilities-12charstadaokagakirunocelotenkawadlugolekadena4ufcfanimsiteasypanelblagrigentobishimafeloansncf-ipfstdlibestadultatarantoyonakagyokutoyonezawapartments3-ap-northeast-123webseiteckidsmynascloudfrontierimo-siemenscaledekaascolipicenoboribetsubsc-paywhirlimitedds3-accesspoint-fips3-ap-east-123miwebaccelastx4432-b-datacenterprisesakihokuizumoarekepnord-aurdalipaynow-dns-dynamic-dnsabruzzombieidskogasawarackmazerbaijan-mayenbaidarmeniajureggio-calabriaknoluoktagajoboji234lima-citychyattorneyagawafflecellclstagehirnayorobninsk123kotisivultrobjectselinogradimo-i-ranamizuhobby-siteaches-yogano-ip-ddnsgeekgalaxyzgierzgorakrehamnfshostrowwlkpnftstorage164-balsan-suedtirolillyokozeastus2000123paginawebadorsiteshikagamiishibechambagricoharugbydgoszczecin-addrammenuorogerscbgdyniaktyubinskaunicommuneustarostwodzislawdev-myqnapcloudflarecn-northwest-123sitewebcamauction-acornikonantotalimanowarudakunexus-2038homesenseeringhomeskleppilottottoris-a-greenhomeunixn--3hcrj9catfoodraydnsalvadorhondahonjyoitakasagonohejis-a-guruzshioyaltakkolobrzegersundongthapmircloudnshome-webservercelliguriahornindalhorsells-itrentino-suedtirolhorteneiheijis-a-hard-workershirahamatonbetsupportrentinoa-adigehospitalhotelwithflightshirakomaganehotmailhoyangerhoylandetakasakitaurahrsnillfjordhungyenhurdalhurumajis-a-hunterhyllestadhyogoris-a-knightpointtokashikitchenhypernodessaitokamachippubetsubetsugaruhyugawarahyundaiwafuneis-uberleetrentinoaltoadigeis-very-badis-very-evillasalleirvikharkovallee-d-aosteis-very-goodis-very-niceis-very-sweetpepperugiais-with-thebandoomdnsiskinkyowariasahikawaisk01isk02jellybeanjenv-arubahcavuotnagahamaroygardenflfanjeonnamsosnowiecaxiaskoyabenoopssejny-1jetztrentinos-tiroljevnakerjewelryjlljls-sto1jls-sto2jls-sto365jmpioneerjnjcloud-ver-jpcatholicurus-3joyentrentinostiroljoyokaichibahccavuotnagaivuotnagaokakyotambabybluebitemasekd1jozis-a-llamashikiwakuratejpmorgangwonjpnjprshoujis-a-musiciankoseis-a-painterhostsolutionshiraokamitsuekosheroykoshimizumakis-a-patsfankoshugheshwiiheyahoooshikamagayaitakashimarshallstatebankhplaystation-cloudsitekosugekotohiradomainsurealtypo3serverkotourakouhokumakogenkounosunnydaykouyamatlabcn-north-1kouzushimatrixn--41akozagawakozakis-a-personaltrainerkozowilliamhillkppspdnsigdalkrasnikahokutokyotangopocznore-og-uvdalkrasnodarkredumbrellapykrelliankristiansandcatsiiitesilklabudhabikinokawabajddarqhachirogatakanabeardubaioiraseekatsushikabedzin-brb-hostingkristiansundkrodsheradkrokstadelvaldaostavangerkropyvnytskyis-a-photographerokuappinkfh-muensterkrymisasaguris-a-playershiftrentinoaadigekumamotoyamatsumaebashimogosenkumanowtvalleedaostekumatorinokumejimatsumotofukekumenanyokkaichirurgiens-dentistes-en-francekundenkunisakis-a-republicanonoichinosekigaharakunitachiaraisaijorpelandkunitomigusukukis-a-rockstarachowicekunneppubtlsimple-urlkuokgroupiwatekurgankurobeebyteappleykurogiminamiawajikis-a-socialistockholmestrandkuroisodegaurakuromatsunais-a-soxfankuronkurotakikawasakis-a-studentalkushirogawakustanais-a-teacherkassyncloudkusupabaseminekutchanelkutnokuzumakis-a-techietis-a-liberalkvafjordkvalsundkvamfamplifyappchizip6kvanangenkvinesdalkvinnheradkviteseidatingkvitsoykwpspectrumisawamjondalenmonza-brianzapposirdalmonza-e-della-brianzaptonsbergmonzabrianzaramonzaebrianzamonzaedellabrianzamordoviamorenapolicemoriyamatsushigemoriyoshiminamibosoftwarendalenugmormonstermoroyamatsuuramortgagemoscowinbarrel-of-knowledgekey-stagingjerstadigickaracolognemrstudio-prodoyonagoyauthgearapps-1and1moseushimoichikuzenmosjoenmoskenesiskomakis-a-therapistoiamosslupskmpspbaremetalpha-myqnapcloudaccess3-sa-east-1mosviknx-serversicherungmotegirlymoviemovimientoolslzmtrainingmuikamiokameokameyamatotakadamukodairamunakatanemuosattemupixolinodeusercontentrentinosud-tirolmurmanskomatsushimasudamurotorcraftrentinosudtirolmusashinodesakatakayamatsuzakis-an-accountantshiratakahagiangmuseumisconfusedmusicanthoboleslawiecommerce-shopitsitevaksdalmutsuzawamutualmy-vigormy-wanggoupilemyactivedirectorymyaddrangedalmyamazeplaymyasustor-elvdalmycloudnasushiobaramydattolocalcertrentinosued-tirolmydbservermyddnskingmydissentrentinosuedtirolmydnsmolaquilarvikomforbargainstitutemp-dnswatches3-us-east-2mydobissmarterthanyoumydrobofageorgeorgiamydsmushcdn77-securecipescaracalculatorskenmyeffectrentinsud-tirolmyfastly-edgemyfirewalledreplittlestargardmyforumishimatsusakahoginozawaonsennanmokurennebuyshousesimplesitemyfritzmyftpaccessojampanasonichernovtsydneymyhome-servermyjinomykolaivencloud66mymailermymediapchiryukyuragifuchungbukharanzanishinoomotegoismailillehammerfeste-ipartsamegawamynetnamegawamyokohamamatsudamypepizzamypetsokananiimilanoticiassurfastly-terrariuminamiizukaminoyamaxunison-servicesaxomyphotoshibalena-devicesokndalmypiemontemypsxn--42c2d9amyrdbxn--45br5cylmysecuritycamerakermyshopblocksolardalmyshopifymyspreadshopselectrentinsudtirolmytabitordermythic-beastsolundbeckommunalforbundmytis-a-bloggermytuleap-partnersomamyvnchitachinakagawassamukawatarittogitsuldalutskartuzymywirebungoonoplurinacionalpmnpodhalepodlasiellakdnepropetrovskanlandpodzonepohlpoivronpokerpokrovskomonotteroypolkowicepoltavalle-aostavernpolyspacepomorzeszowindowsserveftplatter-appkommuneponpesaro-urbino-pesarourbinopesaromasvuotnaritakurashikis-an-actresshishikuis-a-libertarianpordenonepornporsangerporsangugeporsgrunnanpoznanpraxihuanprdprereleaseoullensakerprgmrprimetelprincipenzaprivatelinkyard-cloudletsomnarvikomorotsukaminokawanishiaizubangeprivatizehealthinsuranceprogressivegarsheiyufueliv-dnsoowinepromoliserniapropertysnesopotrentinsued-tirolprotectionprotonetrentinsuedtirolprudentialpruszkowinnersor-odalprvcyprzeworskogpunyukis-an-anarchistoloseyouripinokofuefukihabororoshisogndalpupulawypussycatanzarowiosor-varangerpvhackerpvtrentoyosatoyookaneyamazoepwchitosetogliattipsamnangerpzqotoyohashimotoyakokamimineqponiatowadaqslgbtrevisognequalifioapplatterpl-wawsappspacehostedpicardquangngais-an-artistordalquangninhthuanquangtritonoshonais-an-engineeringquickconnectroandindependent-inquest-a-la-masionquicksytesorfoldquipelementsorocabalestrandabergamochizukijobservablehqldquizzesorreisahayakawakamiichinomiyagithubpreviewskrakowitdkontoguraswinoujscienceswissphinxn--45brj9chonanbunkyonanaoshimaringatlanbibaiduckdnsamparachutinglugsjcbnpparibashkiriasyno-dspjelkavikongsbergsynology-diskstationsynology-dspockongsvingertushungrytuvalle-daostaobaolbia-tempio-olbiatempioolbialowiezaganquangnamasteigenoamishirasatochigiftsrhtrogstadtuxfamilytuyenquangbinhthuantwmailvegasrlvelvetromsohuissier-justiceventurestaurantrustkanieruchomoscientistoripresspydebergvestfoldvestnesrvaomoriguchiharaffleentrycloudflare-ipfsortlandvestre-slidrecreationvestre-totennishiawakuravestvagoyvevelstadvfstreakusercontentroitskoninfernovecorealtorvibo-valentiavibovalentiavideovinhphuchoshichikashukudoyamakeupartysfjordrivelandrobakamaihd-stagingmbhartinnishinoshimattelemarkhangelskaruizawavinnicapitalonevinnytsiavipsinaapplockervirginankokubunjis-byklecznagatorokunohealth-carereformincommbankhakassiavirtual-uservecounterstrikevirtualservervirtualuserveexchangevisakuholeckobierzyceviterboliviajessheimperiavivianvivoryvixn--45q11chowdervlaanderennesoyvladikavkazimierz-dolnyvladimirvlogisticstreamlitapplcube-serversusakis-an-actorvmitourismartlabelingvolvologdanskontumintshowavolyngdalvoorlopervossevangenvotevotingvotoyotap-southeast-5vps-hostreaklinkstrippervusercontentrvaporcloudwiwatsukiyonotairesindevicenzaokinawashirosatochiokinoshimagazinewixsitewixstudio-fipstrynwjgorawkzwloclawekonyvelolipopmcdirwmcloudwmelhustudynamisches-dnsorumisugitomobegetmyipifony-2wmflabstuff-4-salewoodsidell-ogliastrapiapplinzis-certifiedworldworse-thanhphohochiminhadanorthflankatsuyamassa-carrara-massacarraramassabunzenwowithgoogleapiszwpdevcloudwpenginepoweredwphostedmailwpmucdn77-sslingwpmudevelopmentrysiljanewaywpsquaredwritesthisblogoiplumbingotpantheonsitewroclawsglobalacceleratorahimeshimakanegasakievennodebalancernwtcp4wtfastlylbarefootballooningjerdrumemergencyonabarumemorialivornobservereitatsunofficialolitapunkapsienamsskoganeindependent-panelombardiademfakefurniturealestatefarmerseinemrnotebooks-prodeomniwebthings3-object-lambdauthgear-stagingivestbyglandroverhallair-traffic-controllagdenesnaaseinet-freaks3-deprecatedgcagliarissadistgstagempresashibetsukuiitatebayashikaoirmembers3-eu-central-1kapp-ionosegawafaicloudineat-urlive-websitehimejibmdevinapps3-ap-southeast-1337wuozuerichardlillesandefjordwwwithyoutuberspacewzmiuwajimaxn--4it797koobindalxn--4pvxs4allxn--54b7fta0cchromediatechnologyeongbukarumaifmemsetkmaxxn--1ctwolominamatarpitksatmalluxenishiokoppegardrrxn--55qw42gxn--55qx5dxn--5dbhl8dxn--5js045dxn--5rtp49chungnamdalseidfjordtvsangotsukitahiroshimarcherkasykkylvenneslaskerrypropertiesanjotelulublindesnesannanishitosashimizunaminamidaitolgaularavellinodeobjectsannoheliohostrodawaraxn--5rtq34kooris-a-nascarfanxn--5su34j936bgsgxn--5tzm5gxn--6btw5axn--6frz82gxn--6orx2rxn--6qq986b3xlxn--7t0a264churchaselfipirangallupsunappgafanishiwakinuyamashinazawaxn--80aaa0cvacationstufftoread-booksnesoundcastreak-linkomvuxn--3pxu8khmelnitskiyamassivegridxn--80adxhksurnadalxn--80ao21axn--80aqecdr1axn--80asehdbarrell-of-knowledgesuite-stagingjesdalombardyn-vpndns3-us-gov-east-1xn--80aswgxn--80audnedalnxn--8dbq2axn--8ltr62kopervikhmelnytskyivalleeaostexn--8pvr4uxn--8y0a063axn--90a1affinitylotterybnikeisencoreapiacenzachpomorskiengiangxn--90a3academiamibubbleappspotagerxn--90aeroportsinfolkebibleasingrok-freeddnsfreebox-osascoli-picenogatachikawakayamadridvagsoyerxn--90aishobaraoxn--90amckinseyxn--90azhytomyradweblikes-piedmontuckerxn--9dbq2axn--9et52uxn--9krt00axn--andy-iraxn--aroport-byameloyxn--asky-iraxn--aurskog-hland-jnbarsycenterprisecloudbeesusercontentattoolforgerockyonagunicloudiscordsays3-us-gov-west-1xn--avery-yuasakuragawaxn--b-5gaxn--b4w605ferdxn--balsan-sdtirol-nsbarsyonlinequipmentaveusercontentawktoyonomurauthordalandroidienbienishiazaiiyamanouchikujolsterehabmereisenishigotembaixadavvesiidaknongivingjemnes3-eu-north-1xn--bck1b9a5dre4ciprianiigatairaumalatvuopmicrosoftbankasaokamikoaniikappudopaaskvollocaltonetlifyinvestmentsanokashibatakatsukiyosembokutamakiyosunndaluxuryxn--bdddj-mrabdxn--bearalvhki-y4axn--berlevg-jxaxn--bhcavuotna-s4axn--bhccavuotna-k7axn--bidr-5nachikatsuuraxn--bievt-0qa2hosted-by-previderxn--bjarky-fyanagawaxn--bjddar-ptarumizusawaxn--blt-elabkhaziamallamaceiobbcircleaningmodelscapetownnews-stagingmxn--1lqs03nissandoyxn--bmlo-grafana-developerauniterois-coolblogdnshisuifuettertdasnetzxn--bod-2naturalxn--bozen-sdtirol-2obihirosakikamijimayfirstorjdevcloudjiffyxn--brnny-wuacademy-firewall-gatewayxn--brnnysund-m8accident-investigation-aptibleadpagespeedmobilizeropslattumbriaxn--brum-voagatulaspeziaxn--btsfjord-9zaxn--bulsan-sdtirol-nsbasicserver-on-webpaaskimitsubatamicrolightingjovikaragandautoscanaryggeemrappui-productions3-eu-west-1xn--c1avgxn--c2br7gxn--c3s14mitoyoakexn--cck2b3basilicataniavocats3-eu-west-2xn--cckwcxetdxn--cesena-forl-mcbremangerxn--cesenaforl-i8axn--cg4bkis-foundationxn--ciqpnxn--clchc0ea0b2g2a9gcdn77-storagencymrulezajskiptveterinaireadthedocs-hostedogawarabikomaezakishimabarakawagoexn--czr694basketballfinanzlgkpmglassessments3-us-west-1xn--czrs0t0xn--czru2dxn--d1acj3batsfjordiscordsezpisdnipropetrovskygearapparasiteu-2xn--d1alfastvps-serverisignxn--d1atunesquaresinstagingxn--d5qv7z876ciscofreakadns-cloudflareglobalashovhachijoinvilleirfjorduponthewifidelitypeformesswithdnsantamariakexn--davvenjrga-y4axn--djrs72d6uyxn--djty4koryokamikawanehonbetsuwanouchikuhokuryugasakis-a-nursellsyourhomeftpinbrowsersafetymarketshiraois-a-landscaperspectakasugais-a-lawyerxn--dnna-graingerxn--drbak-wuaxn--dyry-iraxn--e1a4cistrondheimeteorappassenger-associationissayokoshibahikariyalibabacloudcsantoandrecifedexperts-comptablesanukinzais-a-bruinsfanissedalvivanovoldaxn--eckvdtc9dxn--efvn9surveysowaxn--efvy88hadselbuzentsujiiexn--ehqz56nxn--elqq16haebaruericssongdalenviknakatombetsumitakagildeskaliszxn--eveni-0qa01gaxn--f6qx53axn--fct429kosaigawaxn--fhbeiarnxn--finny-yuaxn--fiq228c5hsbcitadelhichisochimkentmpatriaxn--fiq64bauhauspostman-echofunatoriginstances3-us-west-2xn--fiqs8susonoxn--fiqz9suzakarpattiaaxn--fjord-lraxn--fjq720axn--fl-ziaxn--flor-jraxn--flw351exn--forl-cesena-fcbentleyoriikarasjohkamikitayamatsurindependent-review-credentialless-staticblitzw-staticblitzxn--forlcesena-c8axn--fpcrj9c3dxn--frde-grajewolterskluwerxn--frna-woaxn--frya-hraxn--fzc2c9e2citicaravanylvenetogakushimotoganexn--fzys8d69uvgmailxn--g2xx48civilaviationionjukujitawaravennaharimalborkdalxn--gckr3f0fauskedsmokorsetagayaseralingenovaraxn--gecrj9clancasterxn--ggaviika-8ya47hagakhanhhoabinhduongxn--gildeskl-g0axn--givuotna-8yanaizuxn--gjvik-wuaxn--gk3at1exn--gls-elacaixaxn--gmq050is-gonexn--gmqw5axn--gnstigbestellen-zvbentrendhostingleezeu-3xn--gnstigliefern-wobiraxn--h-2failxn--h1ahnxn--h1alizxn--h2breg3evenesuzukanazawaxn--h2brj9c8cldmail-boxfuseljeducationporterxn--h3cuzk1dielddanuorris-into-animein-vigorlicexn--hbmer-xqaxn--hcesuolo-7ya35beppublic-inquiryoshiokanumazuryurihonjouwwebhoptokigawavoues3-eu-west-3xn--hebda8beskidyn-ip24xn--hery-iraxn--hgebostad-g3axn--hkkinen-5waxn--hmmrfeasta-s4accident-prevention-fleeklogesquare7xn--hnefoss-q1axn--hobl-iraxn--holtlen-hxaxn--hpmir-xqaxn--hxt814exn--hyanger-q1axn--hylandet-54axn--i1b6b1a6a2exn--imr513nxn--indery-fyandexcloudxn--io0a7is-into-carshitaramaxn--j1adpdnsupdaterxn--j1aefbsbxn--2m4a15exn--j1ael8bestbuyshoparenagareyamagentositenrikuzentakataharaholtalengerdalwaysdatabaseballangenkainanaejrietiengiangheannakadomarineen-rootaribeiraogakicks-assnasaarlandiscountry-snowplowiczeladzxn--j1amhagebostadxn--j6w193gxn--jlq480n2rgxn--jlster-byaotsurgeryxn--jrpeland-54axn--jvr189mittwaldserverxn--k7yn95exn--karmy-yuaxn--kbrq7oxn--kcrx77d1x4axn--kfjord-iuaxn--klbu-woaxn--klt787dxn--kltp7dxn--kltx9axn--klty5xn--4dbgdty6choyodobashichinohealthcareersamsclubartowest1-usamsungminakamichikaiseiyoichipsandvikcoromantovalle-d-aostakinouexn--koluokta-7ya57haibarakitakamiizumisanofidonnakaniikawatanaguraxn--kprw13dxn--kpry57dxn--kput3is-into-cartoonshizukuishimojis-a-linux-useranishiaritabashikshacknetlibp2pimientaketomisatourshiranukamitondabayashiogamagoriziaxn--krager-gyasakaiminatoyotomiyazakis-into-gamessinaklodzkochikushinonsenasakuchinotsuchiurakawaxn--kranghke-b0axn--krdsherad-m8axn--krehamn-dxaxn--krjohka-hwab49jdfirmalselveruminisitexn--ksnes-uuaxn--kvfjord-nxaxn--kvitsy-fyasugitlabbvieeexn--kvnangen-k0axn--l-1fairwindsuzukis-an-entertainerxn--l1accentureklamborghinikolaeventsvalbardunloppadoval-d-aosta-valleyxn--laheadju-7yasuokannamimatakatoris-leetrentinoalto-adigexn--langevg-jxaxn--lcvr32dxn--ldingen-q1axn--leagaviika-52bhzc01xn--lesund-huaxn--lgbbat1ad8jejuxn--lgrd-poacctfcloudflareanycastcgroupowiat-band-campaignoredstonedre-eikerxn--lhppi-xqaxn--linds-pramericanexpresservegame-serverxn--loabt-0qaxn--lrdal-sraxn--lrenskog-54axn--lt-liaclerkstagentsaobernardovre-eikerxn--lten-granexn--lury-iraxn--m3ch0j3axn--mely-iraxn--merker-kuaxn--mgb2ddesvchoseikarugalsacexn--mgb9awbfbx-oschokokekscholarshipschoolbusinessebytomaridagawarmiastapleschoolsztynsetranoyxn--mgba3a3ejtunkonsulatinowruzhgorodxn--mgba3a4f16axn--mgba3a4fra1-dellogliastraderxn--mgba7c0bbn0axn--mgbaam7a8haiduongxn--mgbab2bdxn--mgbah1a3hjkrdxn--mgbai9a5eva00bialystokkeymachineu-4xn--mgbai9azgqp6jelasticbeanstalkhersonlanxesshizuokamogawaxn--mgbayh7gparaglidingxn--mgbbh1a71exn--mgbc0a9azcgxn--mgbca7dzdoxn--mgbcpq6gpa1axn--mgberp4a5d4a87gxn--mgberp4a5d4arxn--mgbgu82axn--mgbi4ecexperimentsveioxn--mgbpl2fhskypecoris-localhostcertificationxn--mgbqly7c0a67fbclever-clouderavpagexn--mgbqly7cvafricapooguyxn--mgbt3dhdxn--mgbtf8fldrvareservdxn--mgbtx2bielawalbrzycharternopilawalesundiscourses3-website-ap-northeast-1xn--mgbx4cd0abogadobeaemcloud-ip-dynamica-west-1xn--mix082fbxoschulplattforminamimakis-a-catererxn--mix891fedjeepharmacienschulserverxn--mjndalen-64axn--mk0axindependent-inquiryxn--mk1bu44cleverappsaogoncanva-appsaotomelbournexn--mkru45is-lostrolekamakurazakiwielunnerxn--mlatvuopmi-s4axn--mli-tlavagiskexn--mlselv-iuaxn--moreke-juaxn--mori-qsakurais-not-axn--mosjen-eyatsukanoyaizuwakamatsubushikusakadogawaxn--mot-tlavangenxn--mre-og-romsdal-qqbuservebolturindalxn--msy-ula0haiphongolffanshimosuwalkis-a-designerxn--mtta-vrjjat-k7aflakstadotsurugimbiella-speziaxarnetbankanzakiyosatokorozawaustevollpagest-mon-blogueurovision-ranchernigovernmentdllivingitpagemprendeatnuh-ohtawaramotoineppueblockbusterniizaustrheimdbambinagisobetsucks3-ap-southeast-2xn--muost-0qaxn--mxtq1miuraxn--ngbc5azdxn--ngbe9e0axn--ngbrxn--4dbrk0cexn--nit225kosakaerodromegalloabatobamaceratabusebastopoleangaviikafjordxn--nmesjevuemie-tcbalsan-sudtirolkuszczytnord-fron-riopretodayxn--nnx388axn--nodeloittexn--nqv7fs00emaxn--nry-yla5gxn--ntso0iqx3axn--ntsq17gxn--nttery-byaeservehalflifeinsurancexn--nvuotna-hwaxn--nyqy26axn--o1achernivtsicilyxn--o3cw4hair-surveillancexn--o3cyx2axn--od0algardxn--od0aq3bielskoczoweddinglitcheap-south-2xn--ogbpf8flekkefjordxn--oppegrd-ixaxn--ostery-fyatsushiroxn--osyro-wuaxn--otu796dxn--p1acfolksvelvikonskowolayangroupippugliaxn--p1ais-not-certifiedxn--pgbs0dhakatanortonkotsumomodenakatsugawaxn--porsgu-sta26fedorainfracloudfunctionschwarzgwesteuropencraftransfer-webappharmacyou2-localplayerxn--pssu33lxn--pssy2uxn--q7ce6axn--q9jyb4clickrisinglesjaguarvodkagaminombrendlyngenebakkeshibukawakeliwebhostingouv0xn--qcka1pmcprequalifymeinforumzxn--qqqt11miyazure-mobilevangerxn--qxa6axn--qxamiyotamanoxn--rady-iraxn--rdal-poaxn--rde-ulazioxn--rdy-0nabaris-savedxn--rennesy-v1axn--rhkkervju-01afedorapeopleikangerxn--rholt-mragowoltlab-democraciaxn--rhqv96gxn--rht27zxn--rht3dxn--rht61exn--risa-5naturbruksgymnxn--risr-iraxn--rland-uuaxn--rlingen-mxaxn--rmskog-byawaraxn--rny31hakodatexn--rovu88bieszczadygeyachimataijinderoyusuharazurefdietateshinanomachintaifun-dnsaliases121xn--rros-granvindafjordxn--rskog-uuaxn--rst-0navigationxn--rsta-framercanvasvn-repospeedpartnerxn--rvc1e0am3exn--ryken-vuaxn--ryrvik-byawatahamaxn--s-1faitheshopwarezzoxn--s9brj9clientoyotsukaidownloadurbanamexnetfylkesbiblackbaudcdn-edgestackhero-networkinggroupperxn--sandnessjen-ogbizxn--sandy-yuaxn--sdtirol-n2axn--seral-lraxn--ses554gxn--sgne-graphicswidnicaobangxn--skierv-utazurecontainerimamateramombetsupplieswidnikitagatamayukuhashimokitayamaxn--skjervy-v1axn--skjk-soaxn--sknit-yqaxn--sknland-fxaxn--slat-5navoizumizakis-slickharkivallee-aosteroyxn--slt-elabievathletajimabaria-vungtaudiopsys3-website-ap-southeast-1xn--smla-hraxn--smna-gratangenxn--snase-nraxn--sndre-land-0cbifukagawalmartaxiijimarugame-hostrowieconomiasagaeroclubmedecin-berlindasdaeguambulancechireadmyblogsytecnologiazurestaticappspaceusercontentproxy9guacuiababia-goraclecloudappschaefflereggiocalabriaurland-4-salernooreggioemiliaromagnarusawaurskog-holandinggff5xn--snes-poaxn--snsa-roaxn--sr-aurdal-l8axn--sr-fron-q1axn--sr-odal-q1axn--sr-varanger-ggbigv-infolldalomoldegreeu-central-2xn--srfold-byaxn--srreisa-q1axn--srum-gratis-a-bookkeepermashikexn--stfold-9xaxn--stjrdal-s1axn--stjrdalshalsen-sqbiharvanedgeappengineu-south-1xn--stre-toten-zcbihoronobeokayamagasakikuchikuseihicampinashikiminohostfoldiscoverbaniazurewebsitests3-external-1xn--t60b56axn--tckwebview-assetswiebodzindependent-commissionxn--tiq49xqyjelenia-goraxn--tjme-hraxn--tn0agrocerydxn--tnsberg-q1axn--tor131oxn--trany-yuaxn--trentin-sd-tirol-rzbikedaejeonbuk0emmafann-arborlandd-dnsfor-better-thanhhoarairkitapps-audiblebesbyencowayokosukanraetnaamesjevuemielnogiehtavuoatnabudejjuniper2-ddnss3-123minsidaarborteamsterdamnserverseating-organicbcg123homepagexl-o-g-i-navyokote123hjemmesidealerdalaheadjuegoshikibichuo0o0g0xn--trentin-sdtirol-7vbiomutazas3-website-ap-southeast-2xn--trentino-sd-tirol-c3birkenesoddtangentapps3-website-eu-west-1xn--trentino-sdtirol-szbittermezproxyusuitatamotors3-website-sa-east-1xn--trentinosd-tirol-rzbjarkoyuullensvanguardisharparisor-fronishiharaxn--trentinosdtirol-7vbjerkreimmobilieniwaizumiotsukumiyamazonaws-cloud9xn--trentinsd-tirol-6vbjugnieznorddalomzaporizhzhiaxn--trentinsdtirol-nsblackfridaynightayninhaccalvinklein-butterepairbusanagochigasakindigenakayamarumorimachidaxn--trgstad-r1axn--trna-woaxn--troms-zuaxn--tysvr-vraxn--uc0atvarggatromsakegawaxn--uc0ay4axn--uist22hakonexn--uisz3gxn--unjrga-rtashkenturystykanmakiyokawaraxn--unup4yxn--uuwu58axn--vads-jraxn--valle-aoste-ebbtuscanyxn--valle-d-aoste-ehboehringerikerxn--valleaoste-e7axn--valledaoste-ebbvaapstempurlxn--vard-jraxn--vegrshei-c0axn--vermgensberater-ctb-hostingxn--vermgensberatung-pwbloombergentingliwiceu-south-2xn--vestvgy-ixa6oxn--vg-yiablushangrilaakesvuemieleccevervaultgoryuzawaxn--vgan-qoaxn--vgsy-qoa0j0xn--vgu402clinicarbonia-iglesias-carboniaiglesiascarboniaxn--vhquvaroyxn--vler-qoaxn--vre-eiker-k8axn--vrggt-xqadxn--vry-yla5gxn--vuq861bmoattachments3-website-us-east-1xn--w4r85el8fhu5dnraxn--w4rs40lxn--wcvs22dxn--wgbh1cliniquenoharaxn--wgbl6axn--xhq521bms3-website-us-gov-west-1xn--xkc2al3hye2axn--xkc2dl3a5ee0hakubaclieu-1xn--y9a3aquarelleborkangerxn--yer-znavuotnarashinoharaxn--yfro4i67oxn--ygarden-p1axn--ygbi2ammxn--4gbriminiserverxn--ystre-slidre-ujbmwcloudnonproddaemongolianishiizunazukindustriaxn--zbx025dxn--zf0avxn--4it168dxn--zfr164bnrweatherchannelsdvrdns3-website-us-west-1xnbayernxz \ No newline at end of file diff --git a/vendor/golang.org/x/net/publicsuffix/table.go b/vendor/golang.org/x/net/publicsuffix/table.go index a37663223aa..0fadf9527f7 100644 --- a/vendor/golang.org/x/net/publicsuffix/table.go +++ b/vendor/golang.org/x/net/publicsuffix/table.go @@ -4,7 +4,7 @@ package publicsuffix import _ "embed" -const version = "publicsuffix.org's public_suffix_list.dat, git revision d6c92f1bbb7433e5db7b8405c25d4035fb8ff376 (2026-02-06T07:36:33Z)" +const version = "publicsuffix.org's public_suffix_list.dat, git revision 2c960dac3d39ba521eb5db9da192968f5be0aded (2025-03-18T07:22:13Z)" const ( nodesBits = 40 @@ -26,7 +26,7 @@ const ( ) // numTLD is the number of top level domains. -const numTLD = 1450 +const numTLD = 1454 // text is the combined text of all labels. // @@ -63,8 +63,8 @@ var nodes uint40String //go:embed data/children var children uint32String -// max children 935 (capacity 1023) -// max text offset 32332 (capacity 65535) +// max children 870 (capacity 1023) +// max text offset 31785 (capacity 65535) // max text length 31 (capacity 63) -// max hi 10533 (capacity 16383) -// max lo 10528 (capacity 16383) +// max hi 10100 (capacity 16383) +// max lo 10095 (capacity 16383) diff --git a/vendor/golang.org/x/sync/singleflight/singleflight.go b/vendor/golang.org/x/sync/singleflight/singleflight.go index 90ca138af31..4051830982a 100644 --- a/vendor/golang.org/x/sync/singleflight/singleflight.go +++ b/vendor/golang.org/x/sync/singleflight/singleflight.go @@ -22,7 +22,7 @@ var errGoexit = errors.New("runtime.Goexit was called") // A panicError is an arbitrary value recovered from a panic // with the stack trace during the execution of given function. type panicError struct { - value any + value interface{} stack []byte } @@ -40,7 +40,7 @@ func (p *panicError) Unwrap() error { return err } -func newPanicError(v any) error { +func newPanicError(v interface{}) error { stack := debug.Stack() // The first line of the stack trace is of the form "goroutine N [status]:" @@ -58,7 +58,7 @@ type call struct { // These fields are written once before the WaitGroup is done // and are only read after the WaitGroup is done. - val any + val interface{} err error // These fields are read and written with the singleflight @@ -78,7 +78,7 @@ type Group struct { // Result holds the results of Do, so they can be passed // on a channel. type Result struct { - Val any + Val interface{} Err error Shared bool } @@ -88,7 +88,7 @@ type Result struct { // time. If a duplicate comes in, the duplicate caller waits for the // original to complete and receives the same results. // The return value shared indicates whether v was given to multiple callers. -func (g *Group) Do(key string, fn func() (any, error)) (v any, err error, shared bool) { +func (g *Group) Do(key string, fn func() (interface{}, error)) (v interface{}, err error, shared bool) { g.mu.Lock() if g.m == nil { g.m = make(map[string]*call) @@ -118,7 +118,7 @@ func (g *Group) Do(key string, fn func() (any, error)) (v any, err error, shared // results when they are ready. // // The returned channel will not be closed. -func (g *Group) DoChan(key string, fn func() (any, error)) <-chan Result { +func (g *Group) DoChan(key string, fn func() (interface{}, error)) <-chan Result { ch := make(chan Result, 1) g.mu.Lock() if g.m == nil { @@ -141,7 +141,7 @@ func (g *Group) DoChan(key string, fn func() (any, error)) <-chan Result { } // doCall handles the single call for a key. -func (g *Group) doCall(c *call, key string, fn func() (any, error)) { +func (g *Group) doCall(c *call, key string, fn func() (interface{}, error)) { normalReturn := false recovered := false diff --git a/vendor/golang.org/x/tools/go/ast/inspector/cursor.go b/vendor/golang.org/x/tools/go/ast/inspector/cursor.go index 239b10c4da0..60ad425f343 100644 --- a/vendor/golang.org/x/tools/go/ast/inspector/cursor.go +++ b/vendor/golang.org/x/tools/go/ast/inspector/cursor.go @@ -18,11 +18,8 @@ import ( // // Two Cursors compare equal if they represent the same node. // -// The zero value of Cursor is not valid. -// -// Call [Inspector.Root] to obtain a cursor for the virtual root node -// of the traversal. This is the sole valid cursor for which [Cursor.Node] -// returns nil. +// Call [Inspector.Root] to obtain a valid cursor for the virtual root +// node of the traversal. // // Use the following methods to navigate efficiently around the tree: // - for ancestors, use [Cursor.Parent] and [Cursor.Enclosing]; @@ -40,7 +37,7 @@ type Cursor struct { index int32 // index of push node; -1 for virtual root node } -// Root returns a valid cursor for the virtual root node, +// Root returns a cursor for the virtual root node, // whose children are the files provided to [New]. // // Its [Cursor.Node] method return nil. @@ -64,23 +61,14 @@ func (in *Inspector) At(index int32) Cursor { return Cursor{in, index} } -// Valid reports whether the cursor is valid. -// The zero value of cursor is invalid. -// Unless otherwise documented, it is not safe to call -// any other method on an invalid cursor. -func (c Cursor) Valid() bool { - return c.in != nil -} - // Inspector returns the cursor's Inspector. -// It returns nil if the Cursor is not valid. func (c Cursor) Inspector() *Inspector { return c.in } // Index returns the index of this cursor position within the package. // // Clients should not assume anything about the numeric Index value // except that it increases monotonically throughout the traversal. -// It is provided for use with [Inspector.At]. +// It is provided for use with [At]. // // Index must not be called on the Root node. func (c Cursor) Index() int32 { @@ -101,7 +89,7 @@ func (c Cursor) Node() ast.Node { // String returns information about the cursor's node, if any. func (c Cursor) String() string { - if !c.Valid() { + if c.in == nil { return "(invalid)" } if c.index < 0 { @@ -245,18 +233,6 @@ func (c Cursor) ParentEdge() (edge.Kind, int) { return unpackEdgeKindAndIndex(events[pop].parent) } -// ParentEdgeKind returns the kind component of the result of [Cursor.ParentEdge]. -func (c Cursor) ParentEdgeKind() edge.Kind { - ek, _ := c.ParentEdge() - return ek -} - -// ParentEdgeIndex returns the index component of the result of [Cursor.ParentEdge]. -func (c Cursor) ParentEdgeIndex() int { - _, index := c.ParentEdge() - return index -} - // ChildAt returns the cursor for the child of the // current node identified by its edge and index. // The index must be -1 if the edge.Kind is not a slice. diff --git a/vendor/golang.org/x/tools/go/ast/inspector/inspector.go b/vendor/golang.org/x/tools/go/ast/inspector/inspector.go index b414d17ebd7..a703cdfcf90 100644 --- a/vendor/golang.org/x/tools/go/ast/inspector/inspector.go +++ b/vendor/golang.org/x/tools/go/ast/inspector/inspector.go @@ -87,7 +87,7 @@ type event struct { // Type can be recovered from the sole bit in typ. // [Tried this, wasn't faster. --adonovan] -// Preorder visits all the nodes of the files supplied to [New] in +// Preorder visits all the nodes of the files supplied to New in // depth-first order. It calls f(n) for each node n before it visits // n's children. // @@ -133,7 +133,7 @@ func (in *Inspector) Preorder(types []ast.Node, f func(ast.Node)) { } } -// Nodes visits the nodes of the files supplied to [New] in depth-first +// Nodes visits the nodes of the files supplied to New in depth-first // order. It calls f(n, true) for each node n before it visits n's // children. If f returns true, Nodes invokes f recursively for each // of the non-nil children of the node, followed by a call of diff --git a/vendor/golang.org/x/tools/go/ast/inspector/iter.go b/vendor/golang.org/x/tools/go/ast/inspector/iter.go index b68c553d413..c576dc70ac7 100644 --- a/vendor/golang.org/x/tools/go/ast/inspector/iter.go +++ b/vendor/golang.org/x/tools/go/ast/inspector/iter.go @@ -12,31 +12,13 @@ import ( ) // PreorderSeq returns an iterator that visits all the -// nodes of the files supplied to [New] in depth-first order. +// nodes of the files supplied to New in depth-first order. // It visits each node n before n's children. // The complete traversal sequence is determined by ast.Inspect. // -// The types argument, if non-empty, enables type-based filtering: -// only nodes whose type matches an element of the types slice are -// included in the sequence. -// -// Example: -// -// for call := range in.PreorderSeq((*ast.CallExpr)(nil)) { ... } -// -// The [All] function is more convenient if there is exactly one node type: -// -// for call := range All[*ast.CallExpr](in) { ... } -// -// See also the newer and more flexible [Cursor] API, which lets you -// start the traversal at an arbitrary node, and reports each matching -// node by its Cursor, enabling easier navigation. -// The above example would be written thus: -// -// for curCall := range in.Root().Preorder((*ast.CallExpr)(nil)) { -// call := curCall.Node().(*ast.CallExpr) -// ... -// } +// The types argument, if non-empty, enables type-based +// filtering of events: only nodes whose type matches an +// element of the types slice are included in the sequence. func (in *Inspector) PreorderSeq(types ...ast.Node) iter.Seq[ast.Node] { // This implementation is identical to Preorder, @@ -71,16 +53,6 @@ func (in *Inspector) PreorderSeq(types ...ast.Node) iter.Seq[ast.Node] { // Example: // // for call := range All[*ast.CallExpr](in) { ... } -// -// See also the newer and more flexible [Cursor] API, which lets you -// start the traversal at an arbitrary node, and reports each matching -// node by its Cursor, enabling easier navigation. -// The above example would be written thus: -// -// for curCall := range in.Root().Preorder((*ast.CallExpr)(nil)) { -// call := curCall.Node().(*ast.CallExpr) -// ... -// } func All[N interface { *S ast.Node diff --git a/vendor/golang.org/x/tools/go/packages/packages.go b/vendor/golang.org/x/tools/go/packages/packages.go index b249a5c7efd..ff607389dac 100644 --- a/vendor/golang.org/x/tools/go/packages/packages.go +++ b/vendor/golang.org/x/tools/go/packages/packages.go @@ -284,8 +284,6 @@ func Load(cfg *Config, patterns ...string) ([]*Package, error) { } } - ld.externalDriver = external - return ld.refine(response) } @@ -694,11 +692,10 @@ type loaderPackage struct { type loader struct { pkgs map[string]*loaderPackage // keyed by Package.ID Config - sizes types.Sizes // non-nil if needed by mode - parseCache map[string]*parseValue - parseCacheMu sync.Mutex - exportMu sync.Mutex // enforces mutual exclusion of exportdata operations - externalDriver bool // true if an external GOPACKAGESDRIVER handled the request + sizes types.Sizes // non-nil if needed by mode + parseCache map[string]*parseValue + parseCacheMu sync.Mutex + exportMu sync.Mutex // enforces mutual exclusion of exportdata operations // Config.Mode contains the implied mode (see impliedLoadMode). // Implied mode contains all the fields we need the data for. @@ -1229,10 +1226,6 @@ func (ld *loader) loadPackage(lpkg *loaderPackage) { } if lpkg.Module != nil && lpkg.Module.GoVersion != "" { tc.GoVersion = "go" + lpkg.Module.GoVersion - } else if ld.externalDriver && lpkg.goVersion != 0 { - // Module information is missing when GOPACKAGESDRIVER is used, - // so use the go version from the driver response. - tc.GoVersion = fmt.Sprintf("go1.%d", lpkg.goVersion) } if (ld.Mode & typecheckCgo) != 0 { if !typesinternal.SetUsesCgo(tc) { diff --git a/vendor/golang.org/x/tools/go/types/objectpath/objectpath.go b/vendor/golang.org/x/tools/go/types/objectpath/objectpath.go index 56723d1f82e..6646bf55089 100644 --- a/vendor/golang.org/x/tools/go/types/objectpath/objectpath.go +++ b/vendor/golang.org/x/tools/go/types/objectpath/objectpath.go @@ -29,6 +29,7 @@ import ( "strconv" "strings" + "golang.org/x/tools/internal/aliases" "golang.org/x/tools/internal/typesinternal" ) @@ -280,10 +281,10 @@ func (enc *Encoder) For(obj types.Object) (Path, error) { T := o.Type() if alias, ok := T.(*types.Alias); ok { - if r := findTypeParam(obj, alias.TypeParams(), path, opTypeParam); r != nil { + if r := findTypeParam(obj, aliases.TypeParams(alias), path, opTypeParam); r != nil { return Path(r), nil } - if r := find(obj, alias.Rhs(), append(path, opRhs)); r != nil { + if r := find(obj, aliases.Rhs(alias), append(path, opRhs)); r != nil { return Path(r), nil } @@ -693,11 +694,14 @@ func Object(pkg *types.Package, p Path) (types.Object, error) { case opRhs: if alias, ok := t.(*types.Alias); ok { - t = alias.Rhs() - } else if false { + t = aliases.Rhs(alias) + } else if false && aliases.Enabled() { + // The Enabled check is too expensive, so for now we + // simply assume that aliases are not enabled. + // // Now that go1.24 is assured, we should be able to - // replace this with "if true {", but it causes objectpath - // tests to fail. TODO(adonovan): investigate. + // replace this with "if true {", but it causes tests + // to fail. TODO(adonovan): investigate. return nil, fmt.Errorf("cannot apply %q to %s (got %T, want alias)", code, t, t) } diff --git a/vendor/golang.org/x/tools/internal/aliases/aliases.go b/vendor/golang.org/x/tools/internal/aliases/aliases.go index a4ae04bc71a..b9425f5a209 100644 --- a/vendor/golang.org/x/tools/internal/aliases/aliases.go +++ b/vendor/golang.org/x/tools/internal/aliases/aliases.go @@ -9,10 +9,30 @@ import ( "go/types" ) -// New creates a new TypeName in Package pkg that +// Package aliases defines backward compatible shims +// for the types.Alias type representation added in 1.22. +// This defines placeholders for x/tools until 1.26. + +// NewAlias creates a new TypeName in Package pkg that // is an alias for the type rhs. -func New(pos token.Pos, pkg *types.Package, name string, rhs types.Type, tparams []*types.TypeParam) *types.TypeName { - tname := types.NewTypeName(pos, pkg, name, nil) - types.NewAlias(tname, rhs).SetTypeParams(tparams) - return tname +// +// The enabled parameter determines whether the resulting [TypeName]'s +// type is an [types.Alias]. Its value must be the result of a call to +// [Enabled], which computes the effective value of +// GODEBUG=gotypesalias=... by invoking the type checker. The Enabled +// function is expensive and should be called once per task (e.g. +// package import), not once per call to NewAlias. +// +// Precondition: enabled || len(tparams)==0. +// If materialized aliases are disabled, there must not be any type parameters. +func NewAlias(enabled bool, pos token.Pos, pkg *types.Package, name string, rhs types.Type, tparams []*types.TypeParam) *types.TypeName { + if enabled { + tname := types.NewTypeName(pos, pkg, name, nil) + SetTypeParams(types.NewAlias(tname, rhs), tparams) + return tname + } + if len(tparams) > 0 { + panic("cannot create an alias with type parameters when gotypesalias is not enabled") + } + return types.NewTypeName(pos, pkg, name, rhs) } diff --git a/vendor/golang.org/x/tools/internal/aliases/aliases_go122.go b/vendor/golang.org/x/tools/internal/aliases/aliases_go122.go new file mode 100644 index 00000000000..7716a3331db --- /dev/null +++ b/vendor/golang.org/x/tools/internal/aliases/aliases_go122.go @@ -0,0 +1,80 @@ +// Copyright 2024 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package aliases + +import ( + "go/ast" + "go/parser" + "go/token" + "go/types" +) + +// Rhs returns the type on the right-hand side of the alias declaration. +func Rhs(alias *types.Alias) types.Type { + if alias, ok := any(alias).(interface{ Rhs() types.Type }); ok { + return alias.Rhs() // go1.23+ + } + + // go1.22's Alias didn't have the Rhs method, + // so Unalias is the best we can do. + return types.Unalias(alias) +} + +// TypeParams returns the type parameter list of the alias. +func TypeParams(alias *types.Alias) *types.TypeParamList { + if alias, ok := any(alias).(interface{ TypeParams() *types.TypeParamList }); ok { + return alias.TypeParams() // go1.23+ + } + return nil +} + +// SetTypeParams sets the type parameters of the alias type. +func SetTypeParams(alias *types.Alias, tparams []*types.TypeParam) { + if alias, ok := any(alias).(interface { + SetTypeParams(tparams []*types.TypeParam) + }); ok { + alias.SetTypeParams(tparams) // go1.23+ + } else if len(tparams) > 0 { + panic("cannot set type parameters of an Alias type in go1.22") + } +} + +// TypeArgs returns the type arguments used to instantiate the Alias type. +func TypeArgs(alias *types.Alias) *types.TypeList { + if alias, ok := any(alias).(interface{ TypeArgs() *types.TypeList }); ok { + return alias.TypeArgs() // go1.23+ + } + return nil // empty (go1.22) +} + +// Origin returns the generic Alias type of which alias is an instance. +// If alias is not an instance of a generic alias, Origin returns alias. +func Origin(alias *types.Alias) *types.Alias { + if alias, ok := any(alias).(interface{ Origin() *types.Alias }); ok { + return alias.Origin() // go1.23+ + } + return alias // not an instance of a generic alias (go1.22) +} + +// Enabled reports whether [NewAlias] should create [types.Alias] types. +// +// This function is expensive! Call it sparingly. +func Enabled() bool { + // The only reliable way to compute the answer is to invoke go/types. + // We don't parse the GODEBUG environment variable, because + // (a) it's tricky to do so in a manner that is consistent + // with the godebug package; in particular, a simple + // substring check is not good enough. The value is a + // rightmost-wins list of options. But more importantly: + // (b) it is impossible to detect changes to the effective + // setting caused by os.Setenv("GODEBUG"), as happens in + // many tests. Therefore any attempt to cache the result + // is just incorrect. + fset := token.NewFileSet() + f, _ := parser.ParseFile(fset, "a.go", "package p; type A = int", parser.SkipObjectResolution) + pkg, _ := new(types.Config).Check("p", fset, []*ast.File{f}, nil) + _, enabled := pkg.Scope().Lookup("A").Type().(*types.Alias) + return enabled +} diff --git a/vendor/golang.org/x/tools/internal/event/core/event.go b/vendor/golang.org/x/tools/internal/event/core/event.go index 42c218818ab..ade5d1e799d 100644 --- a/vendor/golang.org/x/tools/internal/event/core/event.go +++ b/vendor/golang.org/x/tools/internal/event/core/event.go @@ -7,7 +7,6 @@ package core import ( "fmt" - "iter" "time" "golang.org/x/tools/internal/event/label" @@ -35,8 +34,10 @@ func (ev Event) Format(f fmt.State, r rune) { if !ev.at.IsZero() { fmt.Fprint(f, ev.at.Format("2006/01/02 15:04:05 ")) } - for l := range ev.Labels() { - fmt.Fprintf(f, "\n\t%v", l) + for index := 0; ev.Valid(index); index++ { + if l := ev.Label(index); l.Valid() { + fmt.Fprintf(f, "\n\t%v", l) + } } } @@ -51,22 +52,6 @@ func (ev Event) Label(index int) label.Label { return ev.dynamic[index-len(ev.static)] } -// Labels returns an iterator over the event's valid labels. -func (ev Event) Labels() iter.Seq[label.Label] { - return func(yield func(label.Label) bool) { - for _, l := range ev.static { - if l.Valid() && !yield(l) { - return - } - } - for _, l := range ev.dynamic { - if l.Valid() && !yield(l) { - return - } - } - } -} - func (ev Event) Find(key label.Key) label.Label { for _, l := range ev.static { if l.Key() == key { diff --git a/vendor/golang.org/x/tools/internal/event/keys/keys.go b/vendor/golang.org/x/tools/internal/event/keys/keys.go index ac78bc3b9cf..4cfa51b6123 100644 --- a/vendor/golang.org/x/tools/internal/event/keys/keys.go +++ b/vendor/golang.org/x/tools/internal/event/keys/keys.go @@ -6,13 +6,14 @@ package keys import ( "fmt" + "io" "math" "strconv" "golang.org/x/tools/internal/event/label" ) -// Value is a [label.Key] for untyped values. +// Value represents a key for untyped values. type Value struct { name string description string @@ -26,11 +27,11 @@ func New(name, description string) *Value { func (k *Value) Name() string { return k.name } func (k *Value) Description() string { return k.description } -func (k *Value) Append(buf []byte, l label.Label) []byte { - return fmt.Append(buf, k.From(l)) +func (k *Value) Format(w io.Writer, buf []byte, l label.Label) { + fmt.Fprint(w, k.From(l)) } -// Get returns the label for the key of a label.Map. +// Get can be used to get a label for the key from a label.Map. func (k *Value) Get(lm label.Map) any { if t := lm.Find(k); t.Valid() { return k.From(t) @@ -38,7 +39,7 @@ func (k *Value) Get(lm label.Map) any { return nil } -// From returns the value of a Label. +// From can be used to get a value from a Label. func (k *Value) From(t label.Label) any { return t.UnpackValue() } // Of creates a new Label with this key and the supplied value. @@ -53,7 +54,7 @@ type Tag struct { description string } -// NewTag creates a new [label.Key] for tagging labels. +// NewTag creates a new Key for tagging labels. func NewTag(name, description string) *Tag { return &Tag{name: name, description: description} } @@ -61,18 +62,18 @@ func NewTag(name, description string) *Tag { func (k *Tag) Name() string { return k.name } func (k *Tag) Description() string { return k.description } -func (k *Tag) Append(buf []byte, l label.Label) []byte { return buf } +func (k *Tag) Format(w io.Writer, buf []byte, l label.Label) {} // New creates a new Label with this key. func (k *Tag) New() label.Label { return label.OfValue(k, nil) } -// Int is a [label.Key] for signed integers. +// Int represents a key type Int struct { name string description string } -// NewInt returns a new [label.Key] for int64 values. +// NewInt creates a new Key for int values. func NewInt(name, description string) *Int { return &Int{name: name, description: description} } @@ -80,92 +81,381 @@ func NewInt(name, description string) *Int { func (k *Int) Name() string { return k.name } func (k *Int) Description() string { return k.description } -func (k *Int) Append(buf []byte, l label.Label) []byte { - return strconv.AppendInt(buf, k.From(l), 10) +func (k *Int) Format(w io.Writer, buf []byte, l label.Label) { + w.Write(strconv.AppendInt(buf, int64(k.From(l)), 10)) } // Of creates a new Label with this key and the supplied value. -func (k *Int) Of(v int) label.Label { return k.Of64(int64(v)) } +func (k *Int) Of(v int) label.Label { return label.Of64(k, uint64(v)) } -// Of64 creates a new Label with this key and the supplied value. -func (k *Int) Of64(v int64) label.Label { return label.Of64(k, uint64(v)) } - -// Get returns the label for the key of a label.Map. -func (k *Int) Get(lm label.Map) int64 { +// Get can be used to get a label for the key from a label.Map. +func (k *Int) Get(lm label.Map) int { if t := lm.Find(k); t.Valid() { return k.From(t) } return 0 } -// From returns the value of a Label. -func (k *Int) From(t label.Label) int64 { return int64(t.Unpack64()) } +// From can be used to get a value from a Label. +func (k *Int) From(t label.Label) int { return int(t.Unpack64()) } -// Uint is a [label.Key] for unsigned integers. -type Uint struct { +// Int8 represents a key +type Int8 struct { name string description string } -// NewUint creates a new [label.Key] for unsigned values. -func NewUint(name, description string) *Uint { - return &Uint{name: name, description: description} +// NewInt8 creates a new Key for int8 values. +func NewInt8(name, description string) *Int8 { + return &Int8{name: name, description: description} } -func (k *Uint) Name() string { return k.name } -func (k *Uint) Description() string { return k.description } +func (k *Int8) Name() string { return k.name } +func (k *Int8) Description() string { return k.description } -func (k *Uint) Append(buf []byte, l label.Label) []byte { - return strconv.AppendUint(buf, k.From(l), 10) +func (k *Int8) Format(w io.Writer, buf []byte, l label.Label) { + w.Write(strconv.AppendInt(buf, int64(k.From(l)), 10)) } // Of creates a new Label with this key and the supplied value. -func (k *Uint) Of(v uint64) label.Label { return label.Of64(k, v) } +func (k *Int8) Of(v int8) label.Label { return label.Of64(k, uint64(v)) } -// Get returns the label for the key of a label.Map. -func (k *Uint) Get(lm label.Map) uint64 { +// Get can be used to get a label for the key from a label.Map. +func (k *Int8) Get(lm label.Map) int8 { if t := lm.Find(k); t.Valid() { return k.From(t) } return 0 } -// From returns the value of a Label. -func (k *Uint) From(t label.Label) uint64 { return t.Unpack64() } +// From can be used to get a value from a Label. +func (k *Int8) From(t label.Label) int8 { return int8(t.Unpack64()) } -// Float is a label.Key for floating-point values. -type Float struct { +// Int16 represents a key +type Int16 struct { name string description string } -// NewFloat creates a new [label.Key] for floating-point values. -func NewFloat(name, description string) *Float { - return &Float{name: name, description: description} +// NewInt16 creates a new Key for int16 values. +func NewInt16(name, description string) *Int16 { + return &Int16{name: name, description: description} } -func (k *Float) Name() string { return k.name } -func (k *Float) Description() string { return k.description } +func (k *Int16) Name() string { return k.name } +func (k *Int16) Description() string { return k.description } -func (k *Float) Append(buf []byte, l label.Label) []byte { - return strconv.AppendFloat(buf, k.From(l), 'E', -1, 64) +func (k *Int16) Format(w io.Writer, buf []byte, l label.Label) { + w.Write(strconv.AppendInt(buf, int64(k.From(l)), 10)) } // Of creates a new Label with this key and the supplied value. -func (k *Float) Of(v float64) label.Label { +func (k *Int16) Of(v int16) label.Label { return label.Of64(k, uint64(v)) } + +// Get can be used to get a label for the key from a label.Map. +func (k *Int16) Get(lm label.Map) int16 { + if t := lm.Find(k); t.Valid() { + return k.From(t) + } + return 0 +} + +// From can be used to get a value from a Label. +func (k *Int16) From(t label.Label) int16 { return int16(t.Unpack64()) } + +// Int32 represents a key +type Int32 struct { + name string + description string +} + +// NewInt32 creates a new Key for int32 values. +func NewInt32(name, description string) *Int32 { + return &Int32{name: name, description: description} +} + +func (k *Int32) Name() string { return k.name } +func (k *Int32) Description() string { return k.description } + +func (k *Int32) Format(w io.Writer, buf []byte, l label.Label) { + w.Write(strconv.AppendInt(buf, int64(k.From(l)), 10)) +} + +// Of creates a new Label with this key and the supplied value. +func (k *Int32) Of(v int32) label.Label { return label.Of64(k, uint64(v)) } + +// Get can be used to get a label for the key from a label.Map. +func (k *Int32) Get(lm label.Map) int32 { + if t := lm.Find(k); t.Valid() { + return k.From(t) + } + return 0 +} + +// From can be used to get a value from a Label. +func (k *Int32) From(t label.Label) int32 { return int32(t.Unpack64()) } + +// Int64 represents a key +type Int64 struct { + name string + description string +} + +// NewInt64 creates a new Key for int64 values. +func NewInt64(name, description string) *Int64 { + return &Int64{name: name, description: description} +} + +func (k *Int64) Name() string { return k.name } +func (k *Int64) Description() string { return k.description } + +func (k *Int64) Format(w io.Writer, buf []byte, l label.Label) { + w.Write(strconv.AppendInt(buf, k.From(l), 10)) +} + +// Of creates a new Label with this key and the supplied value. +func (k *Int64) Of(v int64) label.Label { return label.Of64(k, uint64(v)) } + +// Get can be used to get a label for the key from a label.Map. +func (k *Int64) Get(lm label.Map) int64 { + if t := lm.Find(k); t.Valid() { + return k.From(t) + } + return 0 +} + +// From can be used to get a value from a Label. +func (k *Int64) From(t label.Label) int64 { return int64(t.Unpack64()) } + +// UInt represents a key +type UInt struct { + name string + description string +} + +// NewUInt creates a new Key for uint values. +func NewUInt(name, description string) *UInt { + return &UInt{name: name, description: description} +} + +func (k *UInt) Name() string { return k.name } +func (k *UInt) Description() string { return k.description } + +func (k *UInt) Format(w io.Writer, buf []byte, l label.Label) { + w.Write(strconv.AppendUint(buf, uint64(k.From(l)), 10)) +} + +// Of creates a new Label with this key and the supplied value. +func (k *UInt) Of(v uint) label.Label { return label.Of64(k, uint64(v)) } + +// Get can be used to get a label for the key from a label.Map. +func (k *UInt) Get(lm label.Map) uint { + if t := lm.Find(k); t.Valid() { + return k.From(t) + } + return 0 +} + +// From can be used to get a value from a Label. +func (k *UInt) From(t label.Label) uint { return uint(t.Unpack64()) } + +// UInt8 represents a key +type UInt8 struct { + name string + description string +} + +// NewUInt8 creates a new Key for uint8 values. +func NewUInt8(name, description string) *UInt8 { + return &UInt8{name: name, description: description} +} + +func (k *UInt8) Name() string { return k.name } +func (k *UInt8) Description() string { return k.description } + +func (k *UInt8) Format(w io.Writer, buf []byte, l label.Label) { + w.Write(strconv.AppendUint(buf, uint64(k.From(l)), 10)) +} + +// Of creates a new Label with this key and the supplied value. +func (k *UInt8) Of(v uint8) label.Label { return label.Of64(k, uint64(v)) } + +// Get can be used to get a label for the key from a label.Map. +func (k *UInt8) Get(lm label.Map) uint8 { + if t := lm.Find(k); t.Valid() { + return k.From(t) + } + return 0 +} + +// From can be used to get a value from a Label. +func (k *UInt8) From(t label.Label) uint8 { return uint8(t.Unpack64()) } + +// UInt16 represents a key +type UInt16 struct { + name string + description string +} + +// NewUInt16 creates a new Key for uint16 values. +func NewUInt16(name, description string) *UInt16 { + return &UInt16{name: name, description: description} +} + +func (k *UInt16) Name() string { return k.name } +func (k *UInt16) Description() string { return k.description } + +func (k *UInt16) Format(w io.Writer, buf []byte, l label.Label) { + w.Write(strconv.AppendUint(buf, uint64(k.From(l)), 10)) +} + +// Of creates a new Label with this key and the supplied value. +func (k *UInt16) Of(v uint16) label.Label { return label.Of64(k, uint64(v)) } + +// Get can be used to get a label for the key from a label.Map. +func (k *UInt16) Get(lm label.Map) uint16 { + if t := lm.Find(k); t.Valid() { + return k.From(t) + } + return 0 +} + +// From can be used to get a value from a Label. +func (k *UInt16) From(t label.Label) uint16 { return uint16(t.Unpack64()) } + +// UInt32 represents a key +type UInt32 struct { + name string + description string +} + +// NewUInt32 creates a new Key for uint32 values. +func NewUInt32(name, description string) *UInt32 { + return &UInt32{name: name, description: description} +} + +func (k *UInt32) Name() string { return k.name } +func (k *UInt32) Description() string { return k.description } + +func (k *UInt32) Format(w io.Writer, buf []byte, l label.Label) { + w.Write(strconv.AppendUint(buf, uint64(k.From(l)), 10)) +} + +// Of creates a new Label with this key and the supplied value. +func (k *UInt32) Of(v uint32) label.Label { return label.Of64(k, uint64(v)) } + +// Get can be used to get a label for the key from a label.Map. +func (k *UInt32) Get(lm label.Map) uint32 { + if t := lm.Find(k); t.Valid() { + return k.From(t) + } + return 0 +} + +// From can be used to get a value from a Label. +func (k *UInt32) From(t label.Label) uint32 { return uint32(t.Unpack64()) } + +// UInt64 represents a key +type UInt64 struct { + name string + description string +} + +// NewUInt64 creates a new Key for uint64 values. +func NewUInt64(name, description string) *UInt64 { + return &UInt64{name: name, description: description} +} + +func (k *UInt64) Name() string { return k.name } +func (k *UInt64) Description() string { return k.description } + +func (k *UInt64) Format(w io.Writer, buf []byte, l label.Label) { + w.Write(strconv.AppendUint(buf, k.From(l), 10)) +} + +// Of creates a new Label with this key and the supplied value. +func (k *UInt64) Of(v uint64) label.Label { return label.Of64(k, v) } + +// Get can be used to get a label for the key from a label.Map. +func (k *UInt64) Get(lm label.Map) uint64 { + if t := lm.Find(k); t.Valid() { + return k.From(t) + } + return 0 +} + +// From can be used to get a value from a Label. +func (k *UInt64) From(t label.Label) uint64 { return t.Unpack64() } + +// Float32 represents a key +type Float32 struct { + name string + description string +} + +// NewFloat32 creates a new Key for float32 values. +func NewFloat32(name, description string) *Float32 { + return &Float32{name: name, description: description} +} + +func (k *Float32) Name() string { return k.name } +func (k *Float32) Description() string { return k.description } + +func (k *Float32) Format(w io.Writer, buf []byte, l label.Label) { + w.Write(strconv.AppendFloat(buf, float64(k.From(l)), 'E', -1, 32)) +} + +// Of creates a new Label with this key and the supplied value. +func (k *Float32) Of(v float32) label.Label { + return label.Of64(k, uint64(math.Float32bits(v))) +} + +// Get can be used to get a label for the key from a label.Map. +func (k *Float32) Get(lm label.Map) float32 { + if t := lm.Find(k); t.Valid() { + return k.From(t) + } + return 0 +} + +// From can be used to get a value from a Label. +func (k *Float32) From(t label.Label) float32 { + return math.Float32frombits(uint32(t.Unpack64())) +} + +// Float64 represents a key +type Float64 struct { + name string + description string +} + +// NewFloat64 creates a new Key for int64 values. +func NewFloat64(name, description string) *Float64 { + return &Float64{name: name, description: description} +} + +func (k *Float64) Name() string { return k.name } +func (k *Float64) Description() string { return k.description } + +func (k *Float64) Format(w io.Writer, buf []byte, l label.Label) { + w.Write(strconv.AppendFloat(buf, k.From(l), 'E', -1, 64)) +} + +// Of creates a new Label with this key and the supplied value. +func (k *Float64) Of(v float64) label.Label { return label.Of64(k, math.Float64bits(v)) } -// Get returns the label for the key of a label.Map. -func (k *Float) Get(lm label.Map) float64 { +// Get can be used to get a label for the key from a label.Map. +func (k *Float64) Get(lm label.Map) float64 { if t := lm.Find(k); t.Valid() { return k.From(t) } return 0 } -// From returns the value of a Label. -func (k *Float) From(t label.Label) float64 { +// From can be used to get a value from a Label. +func (k *Float64) From(t label.Label) float64 { return math.Float64frombits(t.Unpack64()) } @@ -183,14 +473,14 @@ func NewString(name, description string) *String { func (k *String) Name() string { return k.name } func (k *String) Description() string { return k.description } -func (k *String) Append(buf []byte, l label.Label) []byte { - return strconv.AppendQuote(buf, k.From(l)) +func (k *String) Format(w io.Writer, buf []byte, l label.Label) { + w.Write(strconv.AppendQuote(buf, k.From(l))) } // Of creates a new Label with this key and the supplied value. func (k *String) Of(v string) label.Label { return label.OfString(k, v) } -// Get returns the label for the key of a label.Map. +// Get can be used to get a label for the key from a label.Map. func (k *String) Get(lm label.Map) string { if t := lm.Find(k); t.Valid() { return k.From(t) @@ -198,16 +488,53 @@ func (k *String) Get(lm label.Map) string { return "" } -// From returns the value of a Label. +// From can be used to get a value from a Label. func (k *String) From(t label.Label) string { return t.UnpackString() } +// Boolean represents a key +type Boolean struct { + name string + description string +} + +// NewBoolean creates a new Key for bool values. +func NewBoolean(name, description string) *Boolean { + return &Boolean{name: name, description: description} +} + +func (k *Boolean) Name() string { return k.name } +func (k *Boolean) Description() string { return k.description } + +func (k *Boolean) Format(w io.Writer, buf []byte, l label.Label) { + w.Write(strconv.AppendBool(buf, k.From(l))) +} + +// Of creates a new Label with this key and the supplied value. +func (k *Boolean) Of(v bool) label.Label { + if v { + return label.Of64(k, 1) + } + return label.Of64(k, 0) +} + +// Get can be used to get a label for the key from a label.Map. +func (k *Boolean) Get(lm label.Map) bool { + if t := lm.Find(k); t.Valid() { + return k.From(t) + } + return false +} + +// From can be used to get a value from a Label. +func (k *Boolean) From(t label.Label) bool { return t.Unpack64() > 0 } + // Error represents a key type Error struct { name string description string } -// NewError returns a new [label.Key] for error values. +// NewError creates a new Key for int64 values. func NewError(name, description string) *Error { return &Error{name: name, description: description} } @@ -215,14 +542,14 @@ func NewError(name, description string) *Error { func (k *Error) Name() string { return k.name } func (k *Error) Description() string { return k.description } -func (k *Error) Append(buf []byte, l label.Label) []byte { - return append(buf, k.From(l).Error()...) +func (k *Error) Format(w io.Writer, buf []byte, l label.Label) { + io.WriteString(w, k.From(l).Error()) } -// Of returns a new Label with this key and the supplied value. +// Of creates a new Label with this key and the supplied value. func (k *Error) Of(v error) label.Label { return label.OfValue(k, v) } -// Get returns the label for the key of a label.Map. +// Get can be used to get a label for the key from a label.Map. func (k *Error) Get(lm label.Map) error { if t := lm.Find(k); t.Valid() { return k.From(t) @@ -230,7 +557,7 @@ func (k *Error) Get(lm label.Map) error { return nil } -// From returns the value of a Label. +// From can be used to get a value from a Label. func (k *Error) From(t label.Label) error { err, _ := t.UnpackValue().(error) return err diff --git a/vendor/golang.org/x/tools/internal/event/label/label.go b/vendor/golang.org/x/tools/internal/event/label/label.go index e84226f879b..c37584af943 100644 --- a/vendor/golang.org/x/tools/internal/event/label/label.go +++ b/vendor/golang.org/x/tools/internal/event/label/label.go @@ -19,8 +19,12 @@ type Key interface { Name() string // Description returns a string that can be used to describe the value. Description() string - // Append appends the formatted value of the label to the supplied buffer. - Append(buf []byte, l Label) []byte + + // Format is used in formatting to append the value of the label to the + // supplied buffer. + // The formatter may use the supplied buf as a scratch area to avoid + // allocations. + Format(w io.Writer, buf []byte, l Label) } // Label holds a key and value pair. @@ -127,7 +131,8 @@ func (t Label) Format(f fmt.State, r rune) { } io.WriteString(f, t.Key().Name()) io.WriteString(f, "=") - f.Write(t.Key().Append(nil, t)) // ignore error + var buf [128]byte + t.Key().Format(f, buf[:0], t) } func (l *list) Valid(index int) bool { diff --git a/vendor/golang.org/x/tools/internal/gcimporter/iexport.go b/vendor/golang.org/x/tools/internal/gcimporter/iexport.go index 4c9450f4eed..2bef2b058ba 100644 --- a/vendor/golang.org/x/tools/internal/gcimporter/iexport.go +++ b/vendor/golang.org/x/tools/internal/gcimporter/iexport.go @@ -242,6 +242,7 @@ import ( "strings" "golang.org/x/tools/go/types/objectpath" + "golang.org/x/tools/internal/aliases" ) // IExportShallow encodes "shallow" export data for the specified package. @@ -766,11 +767,11 @@ func (p *iexporter) doDecl(obj types.Object) { } if obj.IsAlias() { - alias, materialized := t.(*types.Alias) // perhaps false for certain built-ins? + alias, materialized := t.(*types.Alias) // may fail when aliases are not enabled var tparams *types.TypeParamList if materialized { - tparams = alias.TypeParams() + tparams = aliases.TypeParams(alias) } if tparams.Len() == 0 { w.tag(aliasTag) @@ -784,7 +785,7 @@ func (p *iexporter) doDecl(obj types.Object) { if materialized { // Preserve materialized aliases, // even of non-exported types. - t = alias.Rhs() + t = aliases.Rhs(alias) } w.typ(t, obj.Pkg()) break @@ -1010,11 +1011,11 @@ func (w *exportWriter) doTyp(t types.Type, pkg *types.Package) { } switch t := t.(type) { case *types.Alias: - if targs := t.TypeArgs(); targs.Len() > 0 { + if targs := aliases.TypeArgs(t); targs.Len() > 0 { w.startType(instanceType) w.pos(t.Obj().Pos()) w.typeList(targs, pkg) - w.typ(t.Origin(), pkg) + w.typ(aliases.Origin(t), pkg) return } w.startType(aliasType) diff --git a/vendor/golang.org/x/tools/internal/gcimporter/iimport.go b/vendor/golang.org/x/tools/internal/gcimporter/iimport.go index 1ee4e935491..4d6d50094a0 100644 --- a/vendor/golang.org/x/tools/internal/gcimporter/iimport.go +++ b/vendor/golang.org/x/tools/internal/gcimporter/iimport.go @@ -210,6 +210,7 @@ func iimportCommon(fset *token.FileSet, getPackages GetPackagesFunc, data []byte p := iimporter{ version: int(version), ipath: path, + aliases: aliases.Enabled(), shallow: shallow, reportf: reportf, @@ -369,6 +370,7 @@ type iimporter struct { version int ipath string + aliases bool shallow bool reportf ReportFunc // if non-nil, used to report bugs @@ -574,7 +576,7 @@ func (r *importReader) obj(pkg *types.Package, name string) { tparams = r.tparamList() } typ := r.typ() - obj := aliases.New(pos, pkg, name, typ, tparams) + obj := aliases.NewAlias(r.p.aliases, pos, pkg, name, typ, tparams) markBlack(obj) // workaround for golang/go#69912 r.declare(obj) diff --git a/vendor/golang.org/x/tools/internal/gcimporter/ureader_yes.go b/vendor/golang.org/x/tools/internal/gcimporter/ureader_yes.go index 2e0d80585f3..37b4a39e9e1 100644 --- a/vendor/golang.org/x/tools/internal/gcimporter/ureader_yes.go +++ b/vendor/golang.org/x/tools/internal/gcimporter/ureader_yes.go @@ -26,6 +26,7 @@ type pkgReader struct { ctxt *types.Context imports map[string]*types.Package // previously imported packages, indexed by path + aliases bool // create types.Alias nodes // lazily initialized arrays corresponding to the unified IR // PosBase, Pkg, and Type sections, respectively. @@ -97,6 +98,7 @@ func readUnifiedPackage(fset *token.FileSet, ctxt *types.Context, imports map[st ctxt: ctxt, imports: imports, + aliases: aliases.Enabled(), posBases: make([]string, input.NumElems(pkgbits.RelocPosBase)), pkgs: make([]*types.Package, input.NumElems(pkgbits.RelocPkg)), @@ -537,7 +539,7 @@ func (pr *pkgReader) objIdx(idx pkgbits.Index) (*types.Package, string) { tparams = r.typeParamNames() } typ := r.typ() - declare(aliases.New(pos, objPkg, objName, typ, tparams)) + declare(aliases.NewAlias(r.p.aliases, pos, objPkg, objName, typ, tparams)) case pkgbits.ObjConst: pos := r.pos() diff --git a/vendor/golang.org/x/tools/internal/stdlib/deps.go b/vendor/golang.org/x/tools/internal/stdlib/deps.go index dacfc1dfffc..f41431c949c 100644 --- a/vendor/golang.org/x/tools/internal/stdlib/deps.go +++ b/vendor/golang.org/x/tools/internal/stdlib/deps.go @@ -307,7 +307,7 @@ var deps = [...]pkginfo{ {"net/textproto", "\x02\x01q\x03\x83\x01\f\n-\x01\x02\x15"}, {"net/url", "t\x03Fc\v\x10\x02\x01\x17"}, {"os", "t+\x01\x19\x03\x10\x14\x01\x03\x01\x05\x10\x018\b\x05\x01\x01\r\x06"}, - {"os/exec", "\x03\ngI'\x01\x15\x01+\x06\a\n\x01\x03\x01\r"}, + {"os/exec", "\x03\ngI'\x01\x15\x01+\x06\a\n\x01\x04\r"}, {"os/exec/internal/fdtest", "\xc2\x02"}, {"os/signal", "\r\x99\x02\x15\x05\x02"}, {"os/user", "\x02\x01q\x03\x83\x01,\r\n\x01\x02"}, diff --git a/vendor/golang.org/x/tools/internal/typeparams/free.go b/vendor/golang.org/x/tools/internal/typeparams/free.go index 4c391876e4a..709d2fc1447 100644 --- a/vendor/golang.org/x/tools/internal/typeparams/free.go +++ b/vendor/golang.org/x/tools/internal/typeparams/free.go @@ -6,6 +6,8 @@ package typeparams import ( "go/types" + + "golang.org/x/tools/internal/aliases" ) // Free is a memoization of the set of free type parameters within a @@ -36,7 +38,7 @@ func (w *Free) Has(typ types.Type) (res bool) { break case *types.Alias: - if t.TypeParams().Len() > t.TypeArgs().Len() { + if aliases.TypeParams(t).Len() > aliases.TypeArgs(t).Len() { return true // This is an uninstantiated Alias. } // The expansion of an alias can have free type parameters, diff --git a/vendor/golang.org/x/tools/internal/typesinternal/types.go b/vendor/golang.org/x/tools/internal/typesinternal/types.go index 7112318fc2a..51001666ef1 100644 --- a/vendor/golang.org/x/tools/internal/typesinternal/types.go +++ b/vendor/golang.org/x/tools/internal/typesinternal/types.go @@ -25,6 +25,7 @@ import ( "reflect" "golang.org/x/tools/go/ast/inspector" + "golang.org/x/tools/internal/aliases" ) func SetUsesCgo(conf *types.Config) bool { @@ -141,7 +142,7 @@ var ( func Origin(t NamedOrAlias) NamedOrAlias { switch t := t.(type) { case *types.Alias: - return t.Origin() + return aliases.Origin(t) case *types.Named: return t.Origin() } diff --git a/vendor/modules.txt b/vendor/modules.txt index 276c4ee6358..d9b5c6d46ce 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1094,10 +1094,10 @@ github.com/mschoch/smat # github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 ## explicit github.com/munnerz/goautoneg -# github.com/nats-io/jwt/v2 v2.8.1 -## explicit; go 1.25.0 +# github.com/nats-io/jwt/v2 v2.8.0 +## explicit; go 1.23.0 github.com/nats-io/jwt/v2 -# github.com/nats-io/nats-server/v2 v2.12.6 +# github.com/nats-io/nats-server/v2 v2.12.5 ## explicit; go 1.25.0 github.com/nats-io/nats-server/v2/conf github.com/nats-io/nats-server/v2/internal/fastrand @@ -2242,8 +2242,8 @@ go.yaml.in/yaml/v2 # go.yaml.in/yaml/v3 v3.0.4 ## explicit; go 1.16 go.yaml.in/yaml/v3 -# golang.org/x/crypto v0.49.0 -## explicit; go 1.25.0 +# golang.org/x/crypto v0.48.0 +## explicit; go 1.24.0 golang.org/x/crypto/argon2 golang.org/x/crypto/bcrypt golang.org/x/crypto/blake2b @@ -2294,13 +2294,13 @@ golang.org/x/image/vector golang.org/x/image/vp8 golang.org/x/image/vp8l golang.org/x/image/webp -# golang.org/x/mod v0.33.0 +# golang.org/x/mod v0.32.0 ## explicit; go 1.24.0 golang.org/x/mod/internal/lazyregexp golang.org/x/mod/module golang.org/x/mod/semver -# golang.org/x/net v0.51.0 -## explicit; go 1.25.0 +# golang.org/x/net v0.49.0 +## explicit; go 1.24.0 golang.org/x/net/bpf golang.org/x/net/context golang.org/x/net/context/ctxhttp @@ -2313,7 +2313,6 @@ golang.org/x/net/http2/h2c golang.org/x/net/http2/hpack golang.org/x/net/idna golang.org/x/net/internal/httpcommon -golang.org/x/net/internal/httpsfv golang.org/x/net/internal/iana golang.org/x/net/internal/socket golang.org/x/net/internal/socks @@ -2328,8 +2327,8 @@ golang.org/x/net/trace ## explicit; go 1.24.0 golang.org/x/oauth2 golang.org/x/oauth2/internal -# golang.org/x/sync v0.20.0 -## explicit; go 1.25.0 +# golang.org/x/sync v0.19.0 +## explicit; go 1.24.0 golang.org/x/sync/errgroup golang.org/x/sync/semaphore golang.org/x/sync/singleflight @@ -2344,11 +2343,11 @@ golang.org/x/sys/windows/registry golang.org/x/sys/windows/svc golang.org/x/sys/windows/svc/eventlog golang.org/x/sys/windows/svc/mgr -# golang.org/x/term v0.41.0 -## explicit; go 1.25.0 +# golang.org/x/term v0.40.0 +## explicit; go 1.24.0 golang.org/x/term -# golang.org/x/text v0.35.0 -## explicit; go 1.25.0 +# golang.org/x/text v0.34.0 +## explicit; go 1.24.0 golang.org/x/text/cases golang.org/x/text/encoding golang.org/x/text/encoding/charmap @@ -2375,7 +2374,7 @@ golang.org/x/text/width # golang.org/x/time v0.15.0 ## explicit; go 1.25.0 golang.org/x/time/rate -# golang.org/x/tools v0.42.0 +# golang.org/x/tools v0.41.0 ## explicit; go 1.24.0 golang.org/x/tools/cover golang.org/x/tools/go/ast/astutil