Skip to content

Commit

Permalink
Merge branch 'master' into AG-27492-client-persistent
Browse files Browse the repository at this point in the history
  • Loading branch information
schzhn committed Dec 28, 2023
2 parents 5b294a2 + bec3cab commit 6605cd1
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 18 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ NOTE: Add new changes BELOW THIS COMMENT.

### Added

- Etc timezones to the timezone list ([#6568]).
- The schema version of the configuration file to the output of running
`AdGuardHome` (or `AdGuardHome.exe) with `-v --version` command-line options
([#6545]).
Expand Down Expand Up @@ -60,6 +61,7 @@ NOTE: Add new changes BELOW THIS COMMENT.
### Fixed
- Non-anonymized IP addresses on the dashboard ([#6584]).
- Maximum cache TTL requirement when editing minimum cache TTL in the Web UI
([#6409]).
- Load balancing algorithm stuck on a single server ([#6480]).
Expand All @@ -76,6 +78,8 @@ NOTE: Add new changes BELOW THIS COMMENT.
[#6534]: https://github.com/AdguardTeam/AdGuardHome/issues/6534
[#6541]: https://github.com/AdguardTeam/AdGuardHome/issues/6541
[#6545]: https://github.com/AdguardTeam/AdGuardHome/issues/6545
[#6568]: https://github.com/AdguardTeam/AdGuardHome/issues/6568
[#6584]: https://github.com/AdguardTeam/AdGuardHome/issues/6584

<!--
NOTE: Add new changes ABOVE THIS COMMENT.
Expand Down
26 changes: 15 additions & 11 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"@nivo/line": "^0.64.0",
"axios": "^0.19.2",
"classnames": "^2.2.6",
"countries-and-timezones": "^3.6.0",
"date-fns": "^1.29.0",
"i18next": "^19.6.2",
"i18next-browser-languagedetector": "^4.2.0",
Expand All @@ -42,7 +43,6 @@
"redux-actions": "^2.6.5",
"redux-form": "^8.3.5",
"redux-thunk": "^2.3.0",
"timezones-list": "^3.0.2",
"url-polyfill": "^1.1.9"
},
"devDependencies": {
Expand Down
10 changes: 6 additions & 4 deletions client/src/components/Filters/Services/ScheduleForm/Timezone.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import timezones from 'timezones-list';
import ct from 'countries-and-timezones';
import { useTranslation } from 'react-i18next';
import PropTypes from 'prop-types';

Expand All @@ -15,6 +15,8 @@ export const Timezone = ({
setTimezone(event.target.value);
};

const timezones = ct.getAllTimezones();

return (
<div className="schedule__timezone">
<label className="form__label form__label--with-desc mb-2">
Expand All @@ -30,9 +32,9 @@ export const Timezone = ({
{t('schedule_timezone')}
</option>
{/* TODO: get timezones from backend method when the method is ready */}
{timezones.map((zone) => (
<option key={zone.name} value={zone.tzCode}>
{zone.label}
{Object.keys(timezones).map((zone) => (
<option key={zone} value={zone}>
{zone} (GMT{timezones[zone].utcOffsetStr})
</option>
))}
</select>
Expand Down
4 changes: 2 additions & 2 deletions internal/dnsforward/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ func (s *Server) processQueryLogsAndStats(dctx *dnsContext) (rc resultCode) {

ip := pctx.Addr.Addr().AsSlice()
s.anonymizer.Load()(ip)
ipStr := net.IP(ip).String()

log.Debug("dnsforward: client ip for stats and querylog: %s", ip)
log.Debug("dnsforward: client ip for stats and querylog: %s", ipStr)

ipStr := pctx.Addr.Addr().String()
ids := []string{ipStr, dctx.clientID}
qt, cl := q.Qtype, q.Qclass

Expand Down

0 comments on commit 6605cd1

Please sign in to comment.