Giter Site home page Giter Site logo

outbound support http about mellow HOT 9 CLOSED

mellow-io avatar mellow-io commented on June 22, 2024
outbound support http

from mellow.

Comments (9)

eycorsican avatar eycorsican commented on June 22, 2024 3

@0njzy0 master 上支持了

from mellow.

eycorsican avatar eycorsican commented on June 22, 2024 3

I would recommend using the more compact conf format config file:

[Endpoint]
direct, builtin, freedom, domainStrategy=UseIP
unblock_netease, builtin, http, address=127.0.0.1, port=10027

[RoutingRule]
PROCESS-NAME, node, direct
PROCESS-NAME, NeteaseMusic, unblock_netease
DOMAIN-SUFFIX, music.163.com, unblock_neteas
FINAL, direct

Then you just run UnblockNeteaseMusic locally, and you are good to go:

cd UnblockNeteaseMusic
node app.js -p 10027

Since we are running UnblockNeteaseMusic locally, there is no need to worry about certificate issues.

p.s. UnblockNeteaseMusic is a great project :)

from mellow.

eycorsican avatar eycorsican commented on June 22, 2024

Why should we support HTTP endpoint?

from mellow.

njzydark avatar njzydark commented on June 22, 2024

Why should we support HTTP endpoint?

Use with the UnblockNeteaseMusic

from mellow.

njzydark avatar njzydark commented on June 22, 2024

At this stage, there is really no need to support it. I can cooperate with other software implementations and shut down first.

from mellow.

njzydark avatar njzydark commented on June 22, 2024

Test it, no problem, leave the configuration

{
  "log": {
    "loglevel": "debug"
  },
  "outbounds": [
    {
      "protocol": "socks",
      "settings": {
        "servers": [
          {
            "address": "127.0.0.1",
            "port": 1080
          }
        ]
      }
    },
    {
      "protocol": "http",
      "settings": {
        "servers": [
          {
            "address": "127.0.0.1",
            "port": 8831
          }
        ]
      },
      "tag": "unblockneteasemusic"
    },
    {
      "protocol": "freedom",
      "settings": {
        "domainStrategy": "UseIP"
      },
      "tag": "direct"
    }
  ],
  "routing": {
    "domainStrategy": "IPIfNonMatch",
    "rules": [
      {
        "domain": [
          "music.163.com",
          "music.126.net"
        ],
        "app": [
          "NeteaseMusic",
          "com.apple.WebKit.Networking"
        ],
        "type": "field",
        "outboundTag": "unblockneteasemusic"
      },
      {
        "app": [
          "*shadowsocks*",
          "ShadowsocksX-NG",
          "ClashX",
          "clash"
        ],
        "type": "field",
        "outboundTag": "direct"
      }
    ]
  }
}

from mellow.

laggardkernel avatar laggardkernel commented on June 22, 2024

@eycorsican Can we create [Endpoint] in Kitsunebi Android now? UnblockNeteaseMusic could also be run on Android, but I don't find a way to use the http outbound in Kitsunebi Android.

from mellow.

eycorsican avatar eycorsican commented on June 22, 2024

@laggardkernel HTTP oubound was supported in custom config in the latest Kitsunebi Android release.

from mellow.

laggardkernel avatar laggardkernel commented on June 22, 2024

更新:属于与 #52 同样的问题,解决此问题必须同时关闭 Domain Sniffing 和 Fake DNS。但这样的话 DOMAIN 类规则失效。


你现在怎么部署 UnblockNeteaseMusic?我如果部署在本地且使用 HTTPS 连接。开启 Mellow 后 HTTPS 连接建立不起来。

/usr/local/bin/node /usr/local/deploy/UnblockNeteaseMusic/app.js -a 127.0.0.1 -p 16300:16301 -f 223.252.199.66 -e https://music.163.com -s

从终端的输出中可以看到,UnblockNetease接收到了请求,且 Mellow session 中也可见。Wireshark 可以看到向 223.252.199.66 地址发起的 TLS 握手,但貌似不成功,这个握手过程反复发起。UnblockNeteaseMusic 仅仅使用 HTTP 连接也有问题。

from mellow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.