system: use configured MAC address

Resolves #2346
This commit is contained in:
osy 2021-03-04 21:03:03 -08:00
parent 443f78d77d
commit 5c577d3385
1 changed files with 1 additions and 1 deletions

View File

@ -296,7 +296,7 @@ static size_t sysctl_read(const char *name) {
- (void)argsForNetwork {
if (self.configuration.networkEnabled) {
[self pushArgv:@"-device"];
[self pushArgv:[NSString stringWithFormat:@"%@,netdev=net0", self.configuration.networkCard]];
[self pushArgv:[NSString stringWithFormat:@"%@,mac=%@,netdev=net0", self.configuration.networkCard, self.configuration.networkCardMac]];
[self pushArgv:@"-netdev"];
NSMutableString *netstr = [NSMutableString stringWithString:@"user,id=net0"];
if (self.configuration.networkAddress.length > 0) {