Skip to content

NGC: add peer manually#3034

Draft
Green-Sky wants to merge 1 commit into
TokTok:masterfrom
Green-Sky:ngc_add_peer
Draft

NGC: add peer manually#3034
Green-Sky wants to merge 1 commit into
TokTok:masterfrom
Green-Sky:ngc_add_peer

Conversation

@Green-Sky
Copy link
Copy Markdown
Member

@Green-Sky Green-Sky commented Apr 30, 2026

This change is Reviewable

@Green-Sky Green-Sky added this to the v0.2.24 milestone Apr 30, 2026
@Green-Sky Green-Sky added the enhancement New feature for the user, not a new feature for build script label Apr 30, 2026
Comment thread toxcore/tox.c
GC_Chat *chat = gc_get_group(tox->m->group_handler, group_number);

if (chat == nullptr) {
//SET_ERROR_PARAMETER(error, TOX_ERR_GROUP_SET_PASSWORD_GROUP_NOT_FOUND);
Comment thread toxcore/tox.c
}

if (chat->connection_state == CS_DISCONNECTED) {
//SET_ERROR_PARAMETER(error, TOX_ERR_GROUP_SET_PASSWORD_DISCONNECTED);
Comment thread toxcore/tox.c
peer_ip_port_store.port = net_htons(port);

if (!addr_resolve_or_parse_ip(/*chat->net->ns*/ tox->m->ns, chat->mem, host, &peer_ip_port_store.ip, nullptr, tox->m->options.dns_enabled)) {
//SET_ERROR_PARAMETER(error, TOX_ERR_NEW_PROXY_BAD_HOST);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature for the user, not a new feature for build script

Development

Successfully merging this pull request may close these issues.

2 participants