AdguardTeam / AdguardTeam/AdGuardHome

Error while creating "dhcpv4" and no registering of the handlers

Đang mở
#4,944 13 bình luận 0 reaction 1 người được giao Được @EugeneOne1 nhận Xem trên GitHub
bug P3: Medium waiting for data
Ngôn ngữ chính
TypeScript
Star
36.9k
Fork
2.5k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Prerequisites

- [X] I have checked the [Wiki](https://github.com/AdguardTeam/AdGuardHome/wiki) and [Discussions](https://github.com/AdguardTeam/AdGuardHome/discussions) and found no answer

- [X] I have searched other issues and found no duplicates

- [X] I want to report a bug and not ask a question

### Operating system type

FreeBSD

### CPU architecture

AMD64

### Installation

GitHub releases or script from README

### Setup

On a router, DHCP is handled by the router

### AdGuard Home version

v0.108.0-b.15

### Description

**What did you do?**
I installed AdGuard Home on an OPNsense router that currently runs FreeBSD 13.1-RELEASE-p2. I am able to start AdGuard Home but there is no webserver starting. The console shows that necessary permissions are existing and right after that there is an error shown

_creating dhcpv4 srv: dhcpv4: **nil is not an IP address**_

Right after that the auth and web modules are initialized, redirect for first launch is shown and all internal IPs and IPs of the wan-gateways are shown

**Expected result**
Opening first launch assistant using port 3000 for configuration

**Actual result**
No webpage published, no listening on ports 3000 and 3001

**Screenshots (if applicable)**

**Additional information**
Seems to be a problem registering the IPv4 dhcp server while first start. Found some code in "package dhcpd" that could be responsible for that. There is already a running IPv4 dhcp server on that device.

s.registerHandlers()

v4conf := conf.Conf4
v4conf.InterfaceName = s.conf.InterfaceName
v4conf.notify = s.onNotify
v4conf.Enabled = s.conf.Enabled && len(v4conf.RangeStart) != 0

_s.srv4, err = v4Create(&v4conf)
if err != nil {
if v4conf.Enabled {
return nil, fmt.Errorf("**creating dhcpv4 srv: %w**", err)
}

log.Error("creating dhcpv4 srv: %s", err)
}_

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.