Skip to content

Commit

Permalink
dim-web: fix searching for ips
Browse files Browse the repository at this point in the history
  • Loading branch information
zeromind committed Apr 29, 2022
1 parent 6e52d0b commit f54c1d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dim-web/src/app/ip-pools/components/IpPoolsSearchView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
if (foundIPv4 != null) {
params.cidr = this.pattern;
this.jsonRpc('ipblock_get_attrs', [this.pattern], (response) => {
this.jsonRpc('ipblock_get_attrs', [this.pattern, {layer3domain: this.$config.DEFAULT_LAYER3DOMAIN}], (response) => {
if (response.data.result) {
this.pools_count = 1;
this.max_page = Math.ceil(this.pools_count / this.page_size);
Expand All @@ -161,7 +161,7 @@
}
}, true);
} else if (foundIPv6 != null) {
this.jsonRpc('ipblock_get_attrs', [this.pattern], (response) => {
this.jsonRpc('ipblock_get_attrs', [this.pattern, {layer3domain: this.$config.DEFAULT_LAYER3DOMAIN}], (response) => {
if (response.data.result) {
this.pools_count = 1;
this.max_page = Math.ceil(this.pools_count / this.page_size);
Expand Down

0 comments on commit f54c1d9

Please sign in to comment.