对于ipv6连接,我对中的“address”和"addresses“属性存在问题。对于地址,他们正在寻找一个ipv6对象的结构数组,它将是数组(字节数组,UINT32,字节数组) sig - a(ayuay)到Gnome文档的链接在这里https://developer.gnome.org/NetworkManager/1.10/settings-ipv6.html。
'address-data': [ {'address': settings.ip, 'prefix':settings.subnet} ],
'gateway': settings.gateway,经过一些实验之后,我收到的错误实际上是JS堆栈转储,而不是守护进程错误。有人运气好吗?
发布于 2018-07-25 17:33:44
对于任何遇到这个问题的人来说,我终于让它正常工作了。使用nodejs dbus-本地库。以下是形成用于dbus和网络管理器的ipv6属性的正确方法
['802-3-ethernet',
[
['auto-negotiate', ['b', 1]],
]
],
['connection',
[
['id', ['s', 'some name']],
['type', ['s','802-3-ethernet']],
['uuid', ['s', uuidv4()]],
['interface-name', ['s', 'name of interface (eth0, wlan0)']],
['autoconnect', ['b', 1]]
]
],
['ipv4',
[
['method', ['s','auto']]
]
],
['ipv6',
[
['method', ['s','manual']],
['ip6-privacy', ['i', -1]]
['dns',
['aay',
[
[
'2001:4860:4860::8888', //needs to be array or buffer of uint8
'2001:4860:4860::8844' //needs to be array or buffer of uint8
]
]
]
],
['addresses',
['a(ayuay)',
[
[
[
'static ipv6 ip', //needs to be array or buffer of uint8
parseInt(CIDR, example: 64),
'ipv6 gateway ip' //needs to be array or buffer of uint8
]
]
]
]
]
]
]https://stackoverflow.com/questions/51144042
复制相似问题