feat(native): guests see the session hostname from uname and gethostname

This commit is contained in:
Kurt Himebauch committed 2026-11-09 13:36:38 -05:00
1 parent bde8c9fbed
commit 0c5219b225
6 files changed
+43 -2

No files matched your search

+2
View File
@@ -32,6 +32,8 @@ struct ddnatv_bind {
static struct ddnatv_bind *g_binds = NULL;
static int g_nbinds = 0;
static char *g_binds_raw = NULL;
// The session's host name (DDNATV_HOSTNAME), what proot put in uname(): Android's kernel says "localhost"
static char g_hostname[65];
static int ddnatv_bind_longer_first(const void *a, const void *b) {
const struct ddnatv_bind *x = a, *y = b;