mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-07-19 22:08:07 +03:00
Update sing-box core, refactor MASQUE, update XHTTP
This commit is contained in:
@@ -60,7 +60,7 @@ func (s *Server) Tun(server GunService_TunServer) error {
|
||||
if grpcMetadata, loaded := gM.FromIncomingContext(server.Context()); loaded {
|
||||
forwardFrom := strings.Join(grpcMetadata.Get("X-Forwarded-For"), ",")
|
||||
if forwardFrom != "" {
|
||||
for _, from := range strings.Split(forwardFrom, ",") {
|
||||
for from := range strings.SplitSeq(forwardFrom, ",") {
|
||||
originAddr := M.ParseSocksaddr(from)
|
||||
if originAddr.IsValid() {
|
||||
source = originAddr.Unwrap()
|
||||
|
||||
Reference in New Issue
Block a user