dyndnsd 3.7.0 → 3.7.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a77513980910c028d044c0b2fc2cd4f0190a98bd4a2f044ad902a373ff185ac3
4
- data.tar.gz: e7f0c1c6e0ffae50624e2b5fa7b06dacde7ff89c48491a9bbf6a740b56253a55
3
+ metadata.gz: 7df3dddeea8fe967ba98a8078e228e5ee1f880bed4aceb51028dfd2668a8464d
4
+ data.tar.gz: db2da220cb3dcfcfe2179ef239aeb43f5494eb6d04180d4322ade66817694277
5
5
  SHA512:
6
- metadata.gz: 3ff3f3c5d94c5a5cfb7d1a7d126251173b2d76661baf071ee504c5c09fb0f932166dcaca3580a33db4fb2b1808f0e4f0599c863baec187957e673b15fc7c77a9
7
- data.tar.gz: cfbcd9ea9f2a548b190a8bfa5ca8d32b0f89f5c4f86aae1b164b89f2e7a70b629313cfce851c4bf615b8ee15da6573e226a55bddd808ec2e97928a14d5343bc1
6
+ metadata.gz: 89cdcb8c77dfff68cbc84a77e487cb315118c035c6e72c669e008e3f68da3e5d3eede25897709a636f248234c83733258e82a100669c9894eb60fa2dae6572eb
7
+ data.tar.gz: 9fd32463d526769215c3a3c9e9d98f39cfca63678168a5cb610491557eebc486f7da74d66ba9549a802ffba41cebc8faf6d9b95707902005967a03af5ed5398c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.7.1 (September 20th, 2022)
4
+
5
+ IMPROVEMENTS:
6
+
7
+ - fix [TypeError](https://github.com/cmur2/dyndnsd/issues/205) when user has no hosts configured
8
+
3
9
  ## 3.7.0 (September 16th, 2022)
4
10
 
5
11
  IMPROVEMENTS:
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dyndnsd
4
- VERSION = '3.7.0'
4
+ VERSION = '3.7.1'
5
5
  end
data/lib/dyndnsd.rb CHANGED
@@ -215,10 +215,11 @@ module Dyndnsd
215
215
  invalid_hostnames = hostnames.select { |h| !Helper.fqdn_valid?(h, @domain) }
216
216
  return [422, {'X-DynDNS-Response' => 'hostname_malformed'}, []] if invalid_hostnames.any?
217
217
 
218
+ # we can trust this information since user was authorized by middleware
218
219
  user = env['REMOTE_USER']
219
220
 
220
221
  # check for hostnames that the user does not own
221
- forbidden_hostnames = hostnames - @users[user]['hosts']
222
+ forbidden_hostnames = hostnames - @users[user].fetch('hosts', [])
222
223
  return [422, {'X-DynDNS-Response' => 'host_forbidden'}, []] if forbidden_hostnames.any?
223
224
 
224
225
  if params['offline'] == 'YES'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dyndnsd
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.0
4
+ version: 3.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Nicolai
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-09-16 00:00:00.000000000 Z
11
+ date: 2022-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async
@@ -58,42 +58,42 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.21.0
61
+ version: 0.22.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.21.0
68
+ version: 0.22.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: opentelemetry-instrumentation-rack
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.20.0
75
+ version: 0.21.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.20.0
82
+ version: 0.21.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: opentelemetry-sdk
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 1.0.0.rc2
89
+ version: 1.2.0
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 1.0.0.rc2
96
+ version: 1.2.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rack
99
99
  requirement: !ruby/object:Gem::Requirement