update
Some checks failed
Build Gurty / Build Gurty (, ubuntu-latest, linux, x86_64-unknown-linux-gnu) (push) Failing after 1m33s
Build GurtCA / Build GurtCA (, ubuntu-latest, linux, x86_64-unknown-linux-gnu) (push) Failing after 11m20s
Build GDExtension / Build GDExtension (libgurt_godot.so, ubuntu-latest, linux, x86_64-unknown-linux-gnu) (push) Failing after 16m9s
Build Flumi / Build Flumi (Linux, 4.4.1, ubuntu-latest, linux) (push) Failing after 2h10m11s
Build Flumi / Build Flumi (Windows Desktop, 4.4.1, windows-latest, windows) (push) Has been cancelled
Build GDExtension / Build GDExtension (gurt_godot.dll, windows-latest, windows, x86_64-pc-windows-msvc) (push) Has been cancelled
Build GurtCA / Build GurtCA (.exe, windows-latest, windows, x86_64-pc-windows-msvc) (push) Has been cancelled
Build Gurty / Build Gurty (.exe, windows-latest, windows, x86_64-pc-windows-msvc) (push) Has been cancelled

This commit is contained in:
2025-11-06 20:02:53 +08:00
parent 3f79614850
commit a508e3cefd
48 changed files with 136 additions and 137 deletions

View File

@@ -44,7 +44,7 @@ For production deployments, you can use the Gurted Certificate Authority to get
3. **Follow the DNS challenge instructions:**
When prompted, add the TXT record to your domain:
- Go to gurt://dns.web (or your DNS server)
- Go to lw://dns.web (or your DNS server)
- Login and navigate to your domain
- Add a TXT record with:
- Name: `_gurtca-challenge`

View File

@@ -16,7 +16,7 @@ GURT networking extension for Godot.
var client = GurtProtocolClient.new()
client.create_client(30) # 30s timeout
var response = client.request("gurt://127.0.0.1:4878", {"method": "GET"})
var response = client.request("lw://127.0.0.1:4878", {"method": "GET"})
client.disconnect() # cleanup

View File

@@ -3,7 +3,7 @@ use crate::client::{Challenge, GurtCAClient};
pub async fn complete_dns_challenge(challenge: &Challenge, client: &GurtCAClient) -> Result<()> {
println!("Please add this TXT record to your domain:");
println!(" 1. Go to gurt://dns.web (or your DNS server)");
println!(" 1. Go to lw://dns.web (or your DNS server)");
println!(" 2. Login and navigate to your domain: {}", challenge.domain);
println!(" 3. Add TXT record:");
println!(" Name: _gurtca-challenge");
@@ -30,7 +30,7 @@ async fn verify_dns_txt_record(domain: &str, expected_value: &str, client: &Gurt
});
let response = client
.post_json("gurt://dns.web/resolve-full", &request)
.post_json("lw://dns.web/resolve-full", &request)
.await?;
if response.is_success() {

View File

@@ -199,7 +199,7 @@ impl GurtCAClient {
async fn fetch_ca_via_http(&self) -> Result<String> {
let http_url = self.ca_url
.replace("gurt://", "http://")
.replace("lw://", "http://")
.replace(":8877", ":8876");
let client = reqwest::Client::new();

View File

@@ -12,7 +12,7 @@ struct Cli {
#[command(subcommand)]
command: Commands,
#[arg(long, default_value = "gurt://dns.web")]
#[arg(long, default_value = "lw://dns.web")]
ca_url: String,
}

View File

@@ -5,7 +5,7 @@ edition = "2021"
authors = ["FaceDev"]
license = "MIT"
repository = "https://github.com/outpoot/gurted"
description = "Official GURT:// protocol implementation"
description = "Official lw:// protocol implementation"
[lib]
name = "gurtlib"

View File

@@ -12,7 +12,7 @@ async fn main() -> Result<()> {
Ok(GurtResponse::ok().with_string_body("Test endpoint working!"))
});
println!("Starting GURT server on gurt://127.0.0.1:4878");
println!("Starting GURT server on lw://127.0.0.1:4878");
server.listen("127.0.0.1:4878").await
}

View File

@@ -518,7 +518,7 @@ impl GurtClient {
let parsed_url = Url::parse(url).map_err(|e| GurtError::invalid_message(format!("Invalid URL: {}", e)))?;
if parsed_url.scheme() != "gurt" {
return Err(GurtError::invalid_message("URL must use gurt:// scheme"));
return Err(GurtError::invalid_message("URL must use lw:// scheme"));
}
let host = parsed_url.host_str().ok_or_else(|| GurtError::invalid_message("URL must have a host"))?.to_string();
@@ -767,12 +767,12 @@ mod tests {
async fn test_url_parsing() {
let client = GurtClient::new();
let (host, port, path) = client.parse_gurt_url("gurt://example.com/test").unwrap();
let (host, port, path) = client.parse_gurt_url("lw://example.com/test").unwrap();
assert_eq!(host, "example.com");
assert_eq!(port, DEFAULT_PORT);
assert_eq!(path, "/test");
let (host, port, path) = client.parse_gurt_url("gurt://example.com:8080/api/v1").unwrap();
let (host, port, path) = client.parse_gurt_url("lw://example.com:8080/api/v1").unwrap();
assert_eq!(host, "example.com");
assert_eq!(port, 8080);
assert_eq!(path, "/api/v1");