Changeset 745 in code


Ignore:
Timestamp:
Dec 6, 2021, 5:08:53 PM (4 years ago)
Author:
contact
Message:

Stop incrementing hopcount in RPL_WHOREPLY

It's extra code for something clients should ignore because it's
unreliable and useless.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/upstream.go

    r744 r745  
    13391339                }
    13401340
    1341                 parts := strings.SplitN(trailing, " ", 2)
    1342                 if len(parts) != 2 {
    1343                         return fmt.Errorf("received malformed RPL_WHOREPLY: wrong trailing parameter: %s", trailing)
    1344                 }
    1345                 realname := parts[1]
    1346                 hops, err := strconv.Atoi(parts[0])
    1347                 if err != nil {
    1348                         return fmt.Errorf("received malformed RPL_WHOREPLY: wrong hop count: %s", parts[0])
    1349                 }
    1350                 hops++
    1351 
    1352                 trailing = strconv.Itoa(hops) + " " + realname
    1353 
    13541341                if channel != "*" {
    13551342                        channel = dc.marshalEntity(uc.network, channel)
Note: See TracChangeset for help on using the changeset viewer.