anchor.diff:      #filter{
           id = Id,
           module = Module,
  -        type = Type,
  +        transp = Transp,
           host = Host,
           paths = Paths,
           ws_proto = WsProto
       } = Filter,
  +    Type = case Transp of
  +        http -> http;
  +        https -> http;
  +        ws -> ws;
  +        wss -> wss
  +    end,
       ReqType = case cowboy_req:parse_header(<<"upgrade">>, Req, []) of
           [<<"websocket">>] -> ws;
           _ -> http
  
positive.code: 
  %% @private
  make_filter(Filter, ListenPid, Transp) ->
      Type = case Transp of
          http -> http;
          https -> http;
          ws -> ws;
          wss -> ws
      end,
      #filter{
          id = maps:get(id, Filter),
          module = maps:get(module, Filter),
          type = Type,
          host = maps:get(host, Filter, any),
          paths = nkpacket_util:norm_path(maps:get(path, Filter, any)),
          ws_proto = maps:get(ws_proto, Filter, any),
  
negative.code: -record(filter, {
      id :: term(),         
      module :: module(),    
      transp :: http | https | ws | wss,
      host :: binary() | all,
      paths :: [binary()],
      ws_proto :: binary() | all,
  