-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recent update removed "Ipv4Addr" field from RecordHost (now HostRecord) #59
Comments
@eest Yes it is modified intentionally. Present structure represents actual wapi object representation. So you should use Ipv4Addrs slice. |
@jkraj Thanks for the input. I have tried using a slice instead like so:
... which compiles, but the search fails because the field is not searchable:
Am I doing something wrong or is the Ipv4Addrs field searchable in later WAPI versions? |
Looks like we need to keep "Ipv4addr" field along with "Ipv4addrs" as well @jkraj . If you see the doc "wapidoc/objects/record.host.html#ipv4addr" Ipv4addr of string type is searchable, while ipv4addrs is not. |
@chinmayb: I applied the diff to my 0.6.0 branch and it made my search work, thanks! |
I noticed #69 has been merged, it would be great if you could create a new tag when this is also solved so i have a version that supports both host searching by ip address and the FixedAddress name addition from 0.5.0 :). |
@eest you can use 0.7.0 version. |
I had updated the tag by force pushing. It didnt seem to work. I created a new release v0.7.1. Please use that |
@chinmayb the 0.7.1 tag seems to work as expected, thanks! |
Hello,
I tried updating to 0.6.0 and it broke my code. The initial problem was that Host record related structs had been renamed from "RecordHost[...]" to "HostRecord[...]". While I guess that "HostRecord" reads a bit more naturally it's a bit strange since all other record types are still called "RecordA", "RecordCNAME" etc.
I can live with that change, but I also noticed the now renamed HostRecord struct no longer contains the field "Ipv4Addr". I have been using that to search for hosts by IP address like so:
This of course no longer works. Was this removed on purpose and I am supposed to fill in an Ipv4Addrs slice instead or should it be added back?
Pinging @saiprasannasastry and @jkraj since you were involved in changing the code.
The text was updated successfully, but these errors were encountered: