devices.vps6/vps7: add generic specialisation

This commit is contained in:
2024-06-25 07:29:57 +08:00
parent bc244352b8
commit 6f5a077821
3 changed files with 12 additions and 2 deletions

View File

@@ -81,5 +81,10 @@ inputs:
beesd.instances.root = { device = "/"; hashTableSizeMB = 64; };
};
};
specialisation.generic.configuration =
{
nixos.system.nixpkgs.march = inputs.lib.mkForce null;
system.nixos.tags = [ "generic" ];
};
};
}

View File

@@ -71,5 +71,10 @@ inputs:
xray.server = { serverName = "xserver.vps7.chn.moe"; userNumber = 4; };
};
};
specialisation.generic.configuration =
{
nixos.system.nixpkgs.march = inputs.lib.mkForce null;
system.nixos.tags = [ "generic" ];
};
};
}

View File

@@ -1,5 +1,5 @@
diff --git a/proxy/proxy.go b/proxy/proxy.go
index db92051..3c902ae 100644
index db92051..54d36b4 100644
--- a/proxy/proxy.go
+++ b/proxy/proxy.go
@@ -504,7 +504,8 @@ func CopyRawConnIfExist(ctx context.Context, readerConn net.Conn, writerConn net
@@ -7,7 +7,7 @@ index db92051..3c902ae 100644
}
}
- if splice {
+ _ := splice
+ _ = splice
+ if false {
newError("CopyRawConn splice").WriteToLog(session.ExportIDToError(ctx))
statWriter, _ := writer.(*dispatcher.SizeStatWriter)