Fix our NIP-11 to include NIP-01 support

This commit is contained in:
Mike Dilger 2024-02-17 12:43:00 +13:00
parent aa4bfbef23
commit 592b77dc02

View File

@ -34,7 +34,7 @@ pub async fn serve_nip11(peer: SocketAddr) -> Result<Response<Body>, Error> {
fn build_rid(config: &Config) -> String {
let mut rid: String = String::with_capacity(255);
rid.push_str("{\"supported_nips\":[11],");
rid.push_str("{\"supported_nips\":[1,11],");
let software = env!("CARGO_PKG_NAME");
rid.push_str("\"software\":\"");