Update TCP fpath

This commit is contained in:
Wildan M
2026-01-07 22:53:07 +07:00
parent f5fb58a55b
commit 808fa3b765
+1 -1
View File
@@ -266,7 +266,7 @@ impl<'a> SchemeSocket for TcpSocket<'a> {
fn fpath(&self, file: &SchemeFile<Self>, buf: &mut [u8]) -> SyscallResult<usize> {
let unspecified = "0.0.0.0:0";
let mut path = String::from("tcp:");
let mut path = String::from("/scheme/tcp/");
match self.remote_endpoint() {
Some(endpoint) => write!(&mut path, "{}", endpoint).unwrap(),
None => path.push_str(unspecified),