Skip to content

umdns gen wrap /wrong json data #1

@ptpt52

Description

@ptpt52

ubus call umdns browse
output:

{
	"_dawn._tcp": {
		"MESH-AGENT_E4671E37EC68": {
			"ipv4": "192.168.15.106",
			"ipv6": "fdd5:d636:7052::1",
			"ipv6": "fe80::e667:1eff:fe37:ec68",
			"port": 1026
		},
		"MESH-AGENT_E4671E37EC54": {
			"ipv4": "192.168.15.236",
			"ipv6": "fd0e:6d62:cc45::1",
			"ipv6": "fe80::e667:1eff:fe37:ec54",
			"port": 1026
		},
		"MESH-AGENT_E4671E37EC95": {
			"ipv4": "192.168.15.151",
			"ipv6": "fd2b:8175:aa9b::1",
			"ipv6": "fe80::e667:1eff:fe37:ec95",
			"port": 1026
		},
		"MESH-AGENT_E4671E37EC8B": {
			"ipv4": "192.168.16.1",
			"ipv6": "fda8:42e8:8129::1",
			"ipv6": "fe80::e667:1eff:fe37:ec8b",
			"ipv4": "192.168.15.141",
			"port": 1026
		}
	},
	"_ssh._tcp": {
		"MESH-AGENT_E4671E37EC68": {
			"ipv4": "192.168.15.106",
			"ipv6": "fdd5:d636:7052::1",
			"ipv6": "fe80::e667:1eff:fe37:ec68",
			"port": 22,
			"txt": "daemon=dropbear"
		},
		"MESH-AGENT_E4671E37EC54": {
			"ipv4": "192.168.15.236",
			"ipv6": "fd0e:6d62:cc45::1",
			"ipv6": "fe80::e667:1eff:fe37:ec54",
			"port": 22,
			"txt": "daemon=dropbear"
		},
		"MESH-AGENT_E4671E37EC95": {
			"ipv4": "192.168.15.151",
			"ipv6": "fd2b:8175:aa9b::1",
			"ipv6": "fe80::e667:1eff:fe37:ec95",
			"port": 22,
			"txt": "daemon=dropbear"
		},
		"MESH-AGENT_E4671E37EC8B": {
			"ipv4": "192.168.16.1",
			"ipv6": "fda8:42e8:8129::1",
			"ipv6": "fe80::e667:1eff:fe37:ec8b",
			"ipv4": "192.168.15.141",
			"port": 22,
			"txt": "daemon=dropbear"
		}
	}
}

this json data is wrong, there is Duplicate key 'ipv6' 'ipv4'

@stintel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions